

/* Start:/local/templates/stogood/css/ol-service.css?179275909320695*/
/* OparinLab 2026-10-22: стили правок страниц услуг stogood.ru. Префикс ol- не ломает остальной сайт. */

/* Часть A4: когда правый сайдбар "Другие услуги" отключён — контент на всю ширину */
.services_detail.ol-no-sidebar .has_menu { float: none; width: 100%; }
.services_detail.ol-no-sidebar .service_menu { display: none; }

/* Ссылки в таблице цен (A4): выглядят как ссылки, но не ломают верстку таблицы */
.services-description-text .price table td.name a { color: #a70202; text-decoration: none; }
.services-description-text .price table td.name a:hover { text-decoration: underline; }

/* ======================= Часть Б: новый первый экран + блок филиалов (по макету Артёма) ======================= */
@font-face{font-family:StoFirstPT;src:url('/local/templates/stogood/css/sto-first.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:StoFirstPT;src:url('/local/templates/stogood/css/sto-first.ttf') format('truetype');font-weight:700;font-display:swap}

/* --- Первый экран --- */
#sto-first-screen{font:16px/1.4 StoFirstPT,Arial,sans-serif;color:#333;background:#fff;max-width:100%;color-scheme:light;margin:0 0 10px}
#sto-first-screen *{box-sizing:border-box}
#sto-first-screen [hidden]{display:none!important}
#sto-first-screen a{color:#b80000;text-decoration:none}
#sto-first-screen a:hover{text-decoration:underline}
#sto-first-screen button,#sto-first-screen input,#sto-first-screen select{font:inherit}
/* П3 (волна 3): flex вместо grid — grid раздувал строку (intro-колонка меряется при min-content ширине).
   Flex align-items:stretch делает обе колонки высотой формы; кнопка прижата к низу → выравнивание с низом формы. */
#sto-first-screen .sf-hero{display:flex;align-items:stretch;gap:38px;padding:0 0 10px}
#sto-first-screen .sf-intro{padding-top:0;display:flex;flex-direction:column;flex:1 1 0%;min-width:0}
#sto-first-screen .sf-booking{flex:0 0 340px}
#sto-first-screen .sf-hero h1{font-size:36px;line-height:1.15;font-weight:700;margin:0 0 12px;letter-spacing:-.5px;color:#333;text-transform:none}
#sto-first-screen .sf-description{font-size:17px;line-height:1.5;margin:0 0 18px;max-width:510px}
#sto-first-screen .sf-benefits{list-style:none;padding:0;margin:0 0 23px;display:grid;gap:9px;font-size:15px}
#sto-first-screen .sf-benefits li{display:flex;gap:9px;align-items:baseline}
#sto-first-screen .sf-benefits li::before{content:'\2713';font-weight:700;color:#d60000}
#sto-first-screen .sf-actions{display:flex;flex-wrap:wrap;gap:13px;align-items:center;margin:0;margin-top:auto}
#sto-first-screen .sf-outline{padding:10px 20px;border:1px solid #cf1515;border-radius:4px;min-height:44px;color:#bc0000;font-weight:700;display:inline-flex;align-items:center;cursor:pointer}
#sto-first-screen .sf-mobile-book{display:none}
/* форма-хост: стилизуем компонент recording-form под макет */
#sto-first-screen .sf-booking{padding:22px 24px 19px;border-radius:5px;background:linear-gradient(150deg,#ef2525,#b60000);color:#fff;box-shadow:0 3px 9px #92000018}
#sto-first-screen .sf-booking .recording-form-title{color:#fff;font-size:24px;line-height:1.2;margin:0 0 6px;font-weight:700}
#sto-first-screen .sf-booking .sf-formlead{font-size:14px;margin:0 0 15px;line-height:1.4;color:#fff}
#sto-first-screen .sf-booking form{display:block}
#sto-first-screen .sf-booking .recording-form-element{display:block;width:100%;margin:0 0 10px}
#sto-first-screen .sf-booking input[type=text],#sto-first-screen .sf-booking input[type=tel],#sto-first-screen .sf-booking select{display:block;width:100%;height:41px;min-width:0;background:#fff;border:1px solid #aa1313;border-radius:3px;padding:9px 11px;color:#333;font-size:16px}
#sto-first-screen .sf-booking input::placeholder{color:#818181;opacity:1}
#sto-first-screen .sf-booking input[type=submit]{display:block;min-height:44px;width:100%;background:linear-gradient(#fff,#ededed);border:1px solid #e3d3d3;border-radius:4px;color:#a30000;font-weight:700;margin-top:14px;padding:10px 12px;cursor:pointer;font-size:16px}
#sto-first-screen .sf-booking .g-recaptcha{margin:12px 0 0;transform-origin:0 0}
#sto-first-screen .sf-booking .checkbox-container-wrapper,#sto-first-screen .sf-booking label.sf-consent{display:flex;align-items:flex-start;gap:7px;margin:12px 0 0;font-size:12px;line-height:1.35;color:#fff}
#sto-first-screen .sf-booking .checkbox-container-wrapper a,#sto-first-screen .sf-booking label a{color:#fff;text-decoration:underline}
#sto-first-screen .sf-booking .recording-form-result{color:#fff;font-size:16px;line-height:1.4}
#sto-first-screen .sf-booking .recording-form-error{background:#fff;color:#b00;border-radius:3px;padding:8px 10px;margin:0 0 10px;font-size:13px}
#sto-first-screen .sf-booking .w-form-fail,#sto-first-screen .sf-booking .w-form-done{display:none}
@media(max-width:800px){
  #sto-first-screen .sf-hero{gap:24px}
  #sto-first-screen .sf-booking{flex-basis:310px}
  #sto-first-screen .sf-hero h1{font-size:31px}
  #sto-first-screen .sf-booking{padding:20px}
  #sto-first-screen .sf-description{font-size:16px}
}
@media(max-width:640px){
  /* мобильный: колонки друг под другом — выравнивание не применяем */
  #sto-first-screen .sf-hero{flex-direction:column;align-items:stretch;gap:22px;padding-top:2px}
  #sto-first-screen .sf-booking{flex-basis:auto}
  #sto-first-screen .sf-hero h1{font-size:29px}
  #sto-first-screen .sf-benefits{margin-bottom:19px}
  #sto-first-screen .sf-mobile-book{display:inline-flex;min-height:44px;padding:10px 17px;background:linear-gradient(#fa2c2c,#ae0000);color:#fff;font-weight:700;border:1px solid #b90000;border-radius:4px;align-items:center;cursor:pointer}
  #sto-first-screen .sf-actions{gap:10px;margin-top:18px}
  #sto-first-screen .sf-outline{padding:10px 17px}
}
@media(max-width:360px){#sto-first-screen .sf-hero h1{font-size:26px}}

/* --- Блок филиалов --- */
#sto-branches{--red:#d90000;--line:#dedede;max-width:100%;margin:30px 0 0;padding:30px 0 0;border-top:1px solid #e4e4e4;color:#333;background:#fff;color-scheme:light;font:16px/1.45 StoFirstPT,Arial,sans-serif}
#sto-branches *{box-sizing:border-box}
#sto-branches [hidden]{display:none!important}
#sto-branches button,#sto-branches input,#sto-branches select{font:inherit}
#sto-branches button{cursor:pointer}
#sto-branches a{color:#b80000;text-decoration:none}
#sto-branches a:hover{text-decoration:underline}
#sto-branches h2,#sto-branches h3,#sto-branches p{margin:0}
#sto-branches .sb-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}
#sto-branches .sb-heading h2{font-size:28px;line-height:1.2;font-weight:700;letter-spacing:-.3px;margin-bottom:7px;text-transform:none}
#sto-branches .sb-subtitle{color:#777;font-size:16px}
#sto-branches .sb-hours{flex-shrink:0;display:flex;gap:9px;align-items:center;font-size:14px;color:#666}
#sto-branches .sb-hours strong{display:block;color:#333;font-size:16px}
#sto-branches svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;flex-shrink:0}
#sto-branches .sb-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--line)}
#sto-branches .sb-filters{display:flex;flex-wrap:wrap;gap:7px}
#sto-branches .sb-filter{border:1px solid #ddd;border-radius:3px;background:#f7f7f7;color:#555;font-size:14px;min-height:38px;padding:7px 12px}
#sto-branches .sb-filter:hover{border-color:#b7b7b7}
#sto-branches .sb-filter[aria-pressed=true]{color:#fff;background:#ee2024;border-color:#ee2024}
#sto-branches .sb-map-layout{display:grid;grid-template-columns:295px minmax(0,1fr);gap:20px;align-items:start}
#sto-branches .sb-map-info{padding:20px;border:1px solid var(--line);border-radius:4px}
#sto-branches .sb-map-info label{display:block;color:#777;font-size:13px;margin-bottom:6px}
#sto-branches .sb-map-info select{width:100%;padding:10px 9px;border:1px solid #ccc;border-radius:3px;background:#fff;color:#333;min-height:42px;margin-bottom:21px}
#sto-branches .sb-map-info h3{font-size:23px;line-height:1.2;margin-bottom:8px}
#sto-branches .sb-map-info .sb-address{font-size:15px;margin-bottom:17px;color:#666}
#sto-branches .sb-phone{font-size:18px;font-weight:700;white-space:nowrap;color:#333!important;display:inline-block}
#sto-branches .sb-primary{border:1px solid #b50000;border-radius:4px;background:linear-gradient(#f92929,#b50000);box-shadow:inset 0 1px 0 #ffffff25;color:#fff;min-height:40px;padding:9px 18px;font-size:14px;font-weight:700}
#sto-branches .sb-primary:hover{background:linear-gradient(#e92323,#9e0000)}
#sto-branches .sb-map-info .sb-primary{display:block;width:100%;margin:22px 0 14px}
#sto-branches .sb-route{display:flex;gap:7px;justify-content:center;align-items:center;font-size:14px}
#sto-branches .sb-map{height:390px;border:1px solid #ddd;border-radius:4px;background:#f5f5f5;position:relative;overflow:hidden}
#sto-branches .sb-map iframe{position:relative;width:100%;height:100%;border:0;z-index:1}
#sto-branches .sb-map-note{font-size:12px;color:#888;text-align:right;margin-top:7px}
#sto-branches .sb-map-note a{text-decoration:underline}
#sto-branches .sb-map-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:30px;text-align:center;color:#777;font-size:14px}
#sto-branches .sb-map-fallback strong{font-size:19px;color:#444}
#sto-branches .sb-map-fallback svg{color:#b80000;width:28px;height:28px}
#sto-branches .sb-map-help{font-size:14px;color:#777;line-height:1.5;margin-top:16px}
@media(max-width:800px){#sto-branches .sb-heading{align-items:flex-start;gap:14px}#sto-branches .sb-toolbar{flex-wrap:wrap}#sto-branches .sb-map-layout{grid-template-columns:255px minmax(0,1fr)}#sto-branches .sb-map-info{padding:17px}#sto-branches .sb-map{height:375px}}
@media(max-width:560px){#sto-branches{margin-top:28px;padding-top:28px}#sto-branches .sb-heading h2{font-size:25px}#sto-branches .sb-heading{display:block;margin-bottom:19px}#sto-branches .sb-subtitle{font-size:14px;max-width:290px}#sto-branches .sb-hours{margin-top:13px}#sto-branches .sb-hours strong{display:inline;font-size:14px;margin-left:4px}#sto-branches .sb-toolbar{gap:14px;padding-bottom:16px;margin-bottom:16px}#sto-branches .sb-map-layout{display:flex;flex-direction:column-reverse;gap:16px}#sto-branches .sb-map-layout>div,#sto-branches .sb-map-info{width:100%}#sto-branches .sb-map{height:280px}#sto-branches .sb-map-info select{margin-bottom:17px}}

/* ======================= Правки 2 (2026-10-22): модель, 2 столбца, форма, H1 ======================= */

/* П3: демотированный заголовок из шапки (.logo-sub) на страницах с новым экраном — прячем дубль */
.ol-logo-h1--demoted{display:none!important}

/* П4: reCAPTCHA (304px) масштабируется JS до ширины полей; края формы на одной линии */
#sto-first-screen .sf-booking .sf-captcha-fit{width:100%;margin:12px 0 0;overflow:hidden}
#sto-first-screen .sf-booking .sf-captcha-fit .g-recaptcha{margin:0;transform-origin:0 0}
#sto-first-screen .sf-booking input[type=submit]{width:100%}
/* поля-обёртки компонента имеют padding-right:10px → поля на 10px уже кнопки; обнуляем, чтобы края совпали */
#sto-first-screen .sf-booking .recording-form-element{padding:0!important;width:100%}

/* П2 (волна 3): восстановлено оформление таблицы цен — красная шапка, рамки, зебра,
   один столбец (как было до правок, см. live-d.png). Плоская <table> услуги/модель+услуга. */
.price:not(.price_redesign) > table{width:100%;border-collapse:collapse;margin:0 0 10px;background:#fff;border:1px solid #e3e3e3;table-layout:fixed}
.price:not(.price_redesign) > table > thead{display:table-header-group}
.price:not(.price_redesign) > table > thead > tr > td{background:#d90000;color:#fff;font-weight:700;padding:11px 14px;text-align:left;border:0;font-size:16px;line-height:1.3}
.price:not(.price_redesign) > table > thead > tr > td.column_4{text-align:right;width:150px}
.price:not(.price_redesign) > table > tbody > tr:nth-child(even){background:#f7f7f7}
.price:not(.price_redesign) > table > tbody > tr > td{padding:10px 14px;border-bottom:1px solid #ececec;font-size:16px;line-height:1.35;color:#333;vertical-align:top;word-wrap:break-word;overflow-wrap:break-word}
.price:not(.price_redesign) > table > tbody > tr > td.name{text-align:left}
.price:not(.price_redesign) > table > tbody > tr > td.name a{color:#a70202;text-decoration:none}
.price:not(.price_redesign) > table > tbody > tr > td.name a:hover{text-decoration:underline}
.price:not(.price_redesign) > table > tbody > tr > td.price{text-align:right;white-space:nowrap;font-weight:700;color:#1a1a1a;width:150px}

/* П2 (волна 3): прайс на странице модели (price_redesign) — оформленный список в один столбец
   (рамки и зебра). Специфичность .table.table_visible выше базового display:table!important. */
.price_redesign .table.table_visible .list{display:block!important}
.price_redesign .table.table_visible .list > div{display:flex!important;justify-content:space-between;align-items:baseline;gap:14px;width:100%!important;padding:10px 14px;border-bottom:1px solid #ececec;box-sizing:border-box}
.price_redesign .table.table_visible .list > div:nth-child(even){background:#f7f7f7}
.price_redesign .list > div > .column_2,.price_redesign .list > div > .column_4{display:block!important;border:0!important;padding:0!important;width:auto!important;font-size:16px;line-height:1.35}
.price_redesign .list > div > .name{flex:1 1 auto;text-align:left}
.price_redesign .list > div > .price{flex:0 0 auto;white-space:nowrap;text-align:right;font-weight:700;color:#1a1a1a}

/* П1: кликабельные заголовки разделов прайса на странице модели */
.price_redesign .table_title.ol-linked{position:relative}
.price_redesign .table_title.ol-linked h2{cursor:pointer}
.price_redesign .table_title.ol-linked .ol-go{display:inline-block;margin-left:10px;font-size:13px;font-weight:400;color:#b80000;white-space:nowrap;vertical-align:middle;text-decoration:underline}

/* П3 (волна 3): выравнивание низа левой колонки с низом формы.
   .sf-booking (обёртка .w-form) имеет margin-bottom:50px — при align-items:stretch
   он входит в margin-box, растягивая .sf-intro на 50px ниже формы.
   Обнуляем margin → строка flex = высота формы, кнопка «Смотреть цены» встаёт на низ формы. */
#sto-first-screen .sf-booking{margin-bottom:0}

/* ===== Волна 4 (2026-10-23) ===== */
/* п.1: вкладки прайса на странице модели. Заголовок только раскрывает/сворачивает вкладку,
   переход на услугу кнопкой «Перейти к услуге», видна только у раскрытой вкладки. */
.price_redesign .table_title.ol-linked{position:relative}
.price_redesign .table_title .ol-go-btn{display:none;align-items:center;min-height:36px;padding:7px 14px;background:linear-gradient(#fa2c2c,#ae0000);border:1px solid #b90000;border-radius:4px;color:#fff!important;font-size:14px;font-weight:700;line-height:1.2;text-decoration:none!important;white-space:nowrap;box-sizing:border-box}
.price_redesign .table_title .ol-go-btn:hover{background:#d10000}
.price_redesign .table_visible .table_title .ol-go-btn{display:inline-flex;position:absolute;right:44px;top:50%;transform:translateY(-50%)}
.price_redesign .table_visible .table_title.ol-linked h2{padding-left:210px;padding-right:210px} /* симметрично: заголовок остаётся по центру */
@media(max-width:640px){
  .price_redesign .table_visible .table_title.ol-linked h2{padding-left:40px;padding-right:40px}
  .price_redesign .table_visible .table_title .ol-go-btn{position:static;transform:none;margin:0 10px 10px}
}
/* п.2: «Смотреть цены» сразу под блоком УТП (раньше прижималась к низу колонки через margin-top:auto) */
@media(min-width:641px){#sto-first-screen .sf-actions{margin-top:0}}
/* п.4: текст перед картой и FAQ на общую ширину контента (было 65% у .model_detail и max-width:820px у FAQ) */
.services_detail_item > .services-description-text{width:100%!important;max-width:none!important;float:none!important}
.question-answer_wrap .question-answer{max-width:none}
/* п.3: обёртка нового блока акции */
.ol-offer-wrap{margin:30px 0}
/* п.6: карта филиалов на JS API (iframe скрывается, когда API загрузился) */
#sto-branches .sb-map .sb-ymap{position:absolute;inset:0;z-index:2}
#sto-branches .sb-map.sb-has-ymap iframe{display:none}
#sto-branches .sb-map-info.sb-flash{animation:sbFlash 1.2s ease-out}
@keyframes sbFlash{0%{box-shadow:0 0 0 3px #d90000;border-color:#d90000}100%{box-shadow:0 0 0 0 transparent}}
@media(prefers-reduced-motion:reduce){#sto-branches .sb-map-info.sb-flash{animation:none}}
/* ===== Волна 5 (2026-10-23) ===== */
/* п.2: блок акции «Осмотр по 37 параметрам» не прилипает к соседям: 56px сверху и снизу (телефон 36px).
   Только вертикальные отступы, чтобы не сбить центрирование .wrapper_center на главной марки и в прайсах.
   Селектор с .services_detail_item: правило сайта .services_detail_item>div{margin:0 0 15px} перебивало отступ. */
.ol-offer-wrap,.services_detail_item>.ol-offer-wrap{margin-top:56px;margin-bottom:56px}
/* Соседи со своими отступами: заголовок H2 после блока (SEO-текст/FAQ) и нижний отступ блока услуг на главной марки
   и в прайсах. Компенсируем, чтобы видимый зазор оставался 56px (телефон 36-40px). */
.services_detail_item>.ol-offer-wrap:last-child{margin-bottom:40px}
.wrapper_center.ol-offer-wrap{margin-top:24px}
@media(max-width:640px){.ol-offer-wrap,.services_detail_item>.ol-offer-wrap{margin-top:36px;margin-bottom:36px}
  .services_detail_item>.ol-offer-wrap:last-child{margin-bottom:4px}
  .wrapper_center.ol-offer-wrap{margin-top:0;margin-bottom:21px}
  .wrapper_center.ol-offer-wrap:first-child{margin-top:-36px}}
/* прайсы марки и модели: блок первым в контейнере, сверху уже есть отступ контейнера */
@media(min-width:641px){.wrapper_center.ol-offer-wrap:first-child{margin-top:-24px}}
/* п.3: после переноса карты под таблицу цен вторая обёртка (акция + текст) без лишних отступов сверху */
.services_detail.ol-after-branches{margin-top:0;padding-top:0}
/* п.4, п.5: пункты УТП первого экрана, ведущие к карте и к акции */
#sto-first-screen .sf-benefits a.sf-anchor{color:inherit;text-decoration:none;border-bottom:1px dashed #d60000;cursor:pointer}
#sto-first-screen .sf-benefits a.sf-anchor:hover{color:#d60000;border-bottom-style:solid}
#sto-first-screen .sf-benefits a.sf-anchor:focus-visible{outline:2px solid #d60000;outline-offset:2px}
#sto-first-screen .sf-benefits a.sf-anchor-off{border-bottom:0;cursor:auto}
/* ===== Волна 6 (2026-10-23) ===== */
/* п.1: на телефоне (до 767px) кнопки «Записаться» в первом экране нет: форма заявки стоит сразу под ним. Десктоп не трогаем. */
@media(max-width:767px){#sto-first-screen .sf-mobile-book{display:none!important}}

/* End */
/* /local/templates/stogood/css/ol-service.css?179275909320695 */
