/* avtoutil.com: мобильный UX, 25.11.2026. Подключается в header.php после form.css.
   Правила для телефона — только внутри @media (max-width:767px); меню и слайдер — до 1000px.
   Компьютерная вёрстка (>1000px) не меняется, кроме заглушки ролика YouTube (.yt-lite).
   Палитра: бренд #0059ba (синий логотипа), текст #333, подложки #eceef5.
   Нижняя панель .m-bar — своя (тёмно-синяя «капсула» с янтарной кнопкой), не как у avtoutil.moscow и .рф. */

/* ---- то, что на компьютере не показываем ---- */
.mnav, .m-offer, .m-bar { display: none; }

/* ---- заглушка ролика YouTube (все ширины): iframe подгружается по клику ---- */
.yt-lite { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column;
           width: 320px; max-width: 100%; height: 200px; box-sizing: border-box; background: #14223a; color: #fff;
           text-decoration: none; border-radius: 6px; text-align: center; padding: 12px; }
.yt-lite__play { width: 56px; height: 40px; border-radius: 12px; background: #c90d06; position: relative; margin: 0 0 12px; }
.yt-lite__play::after { content: ""; position: absolute; left: 22px; top: 11px; border-style: solid; border-width: 9px 0 9px 15px;
                        border-color: transparent transparent transparent #fff; }
.yt-lite__t { font: 15px/1.3 Arial; color: #fff; }
.yt-lite:focus-visible { outline: 3px solid #ffb81c; outline-offset: 2px; }

/* ---- меню и слайдер: до 1000px (планшет тоже) ---- */
@media (max-width: 1000px) {
  .intro { display: none; }                      /* переключатель слайдера на телефоне не нужен */
  .sidebar .mainMenu { display: none; }          /* меню из колонки заменено на .mnav наверху */
  .mnav { display: block; margin: 0 0 12px; }
  .mnav summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 48px;
                  padding: 0 16px; box-sizing: border-box; background: #0059ba; color: #fff; border-radius: 6px;
                  font: 700 17px/1.2 Arial; cursor: pointer; }
  .mnav summary::-webkit-details-marker { display: none; }
  .mnav summary::after { content: ""; width: 20px; height: 2px; background: #fff; box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff; }
  .mnav[open] summary::after { box-shadow: none; transform: rotate(45deg); }
  .mnav[open] summary { border-radius: 6px 6px 0 0; }
  .mnav nav { background: #eceef5; border-radius: 0 0 6px 6px; overflow: hidden; }
  .mnav a { display: block; min-height: 48px; box-sizing: border-box; padding: 13px 16px; font: 17px/1.3 Arial; color: #0059ba;
            text-decoration: none; border-top: 1px solid #d7d9e3; }
  .mnav a[aria-current="page"] { background: #d9e6f5; font-weight: 700; color: #00418a; }
  .mnav summary:focus-visible, .mnav a:focus-visible { outline: 3px solid #ffb81c; outline-offset: -3px; }
}

@media (max-width: 767px) {

  /* ---- каркас ---- */
  html { -webkit-text-size-adjust: 100%; }
  body, body.inside { background-image: none !important; background-color: #fff;
                      padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
  .wrapper { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .content img, .sidebar img { max-width: 100% !important; height: auto !important; }

  /* ---- шапка: одна строка, ~56px вместо 200px ---- */
  .header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0;
            text-align: left; border-bottom: 1px solid #e1e3ec; margin: 0 0 8px; }
  .logo { flex: 0 0 auto; margin: 0; width: 150px; height: 32px; background-repeat: no-repeat; background-size: contain; }
  .contacts { margin: 0; font-size: 0; line-height: 1; text-align: right; }
  .contacts br, .contacts p { display: none; }
  .contacts a { display: inline-block; padding: 13px 0 13px 4px; font: 700 18px/1.2 Arial; color: #0059ba !important;
                text-decoration: none; white-space: nowrap; }
  .address { display: none; }

  /* ---- оффер на первом экране главной ---- */
  .m-offer { display: block; margin: 0 0 16px; }
  .m-offer__area { margin: 0 0 12px; font: 16px/1.4 Arial; color: #333; }
  .m-offer__call, .m-offer__form { display: flex; align-items: center; justify-content: center; box-sizing: border-box;
                                   min-height: 52px; padding: 0 16px; border-radius: 8px; font: 700 18px/1.2 Arial;
                                   text-decoration: none; text-align: center; }
  .content .m-offer a { display: flex; padding: 0 16px; text-decoration: none; }
  .content .m-offer a.m-offer__call { background: #0059ba; color: #fff !important; margin: 0 0 10px; }
  .content .m-offer a.m-offer__form { background: #fff; color: #0059ba !important; border: 2px solid #0059ba; }
  .m-offer a:focus-visible { outline: 3px solid #ffb81c; outline-offset: 2px; }

  /* ---- текст: единый вид, без пестроты ---- */
  .content { font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5; color: #333; }
  .content h1 { font: 700 26px/1.25 Arial, Helvetica, sans-serif; color: #0059ba; margin: 8px 0 14px; text-align: left; }
  .content h2 { font: 700 20px/1.3 Arial, Helvetica, sans-serif; color: #0059ba; margin: 22px 0 10px; text-align: left; }
  .content h2 span, .content h2 b, .content h2 strong, .content h2 i, .content h2 em, .content h2 font, .content h2 u {
      font-size: inherit !important; line-height: inherit !important; font-style: normal !important; color: #0059ba !important; }
  .content h3 { font: 700 18px/1.3 Arial, Helvetica, sans-serif; color: #0059ba; margin: 18px 0 8px; text-align: left; }
  .content h3 span, .content h3 b, .content h3 i, .content h3 font { font-size: inherit !important; font-style: normal !important; color: #0059ba !important; }
  .content :is(p, li, span, font, i, em, b, strong, u, td, th, dd, dt, blockquote):not(.leadForm *, h1 *, h2 *, h3 *, a *) {
      font-size: 16px !important; line-height: 1.5 !important; font-style: normal !important; color: #333 !important;
      font-family: Arial, Helvetica, sans-serif !important; text-align: left !important; }
  .content h2 p { font-size: 16px; font-weight: 400; color: #333; line-height: 1.5; text-align: left !important; margin: 0 0 10px; }
  .content p, .content li { margin-bottom: 10px; }
  .content p[align], .content div[align] { text-align: left !important; }
  .content a, .content a span, .content a b, .content a i, .content a font, .content a em, .content a strong {
      color: #0059ba !important; font-style: normal !important; font-size: inherit !important; text-decoration: underline; }
  .content a[href^="tel:"] { display: inline-block; padding: 10px 0; }
  .content img { float: none !important; display: block; margin: 12px auto; }
  .content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .content iframe, .content video { max-width: 100%; }
  .content a[href^="http"] { word-break: break-word; }

  /* ---- колонка под текстом: оставляем форму, отзывы; остальное убрано ---- */
  .sidebar .about, .sidebar iframe, .sidebar .yt-lite, .m-hide-col { display: none; }
  .leftNav { margin: 0 0 16px; }
  .sidebar { font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5; color: #333; }
  .sidebar :is(p, li, i, span:not(.caption), u, b, h3) { font-size: 16px; line-height: 1.5; font-style: normal; }
  .sidebar i { color: #333; }

  /* ---- форма заявки: контраст и зоны нажатия ---- */
  .leadForm { font-size: 16px; scroll-margin-top: 12px; }
  .leadForm .lf-title { font: 700 21px/1.25 Arial, Helvetica, sans-serif; color: #0059ba; margin: 0 0 8px; }
  .leadForm .lf-sub { font: 16px/1.4 Arial, Helvetica, sans-serif; font-style: normal; color: #4a4c55; }
  .leadForm label { font-size: 16px; color: #3e3e3e; margin: 0 0 4px; }
  .leadForm .lf-opt { color: #5b5d66; font-style: normal; }
  .leadForm input[type="text"], .leadForm input[type="tel"] { min-height: 48px; }
  .leadForm textarea { min-height: 72px; }
  .leadForm .lf-agree label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; color: #4a4c55; padding: 6px 0; }
  .leadForm .lf-agree input { flex: 0 0 22px; width: 22px; height: 22px; margin: 0; }
  .leadForm .lf-agree a { color: #0059ba; text-decoration: underline; }
  .leadForm .lf-btn { min-height: 52px; background: #0059ba; font: 700 18px/1.2 Arial, Helvetica, sans-serif; }
  .leadForm .lf-btn:hover, .leadForm .lf-btn:active { background: #00418a; }
  .leadForm .lf-ok { color: #14582c; }
  .leadForm .lf-err { color: #8a1c18; }
  .leadForm :focus-visible { outline: 3px solid #ffb81c; outline-offset: 2px; }

  /* ---- подвал ---- */
  .footer { font-size: 15px; line-height: 1.5; }
  .footer a { display: inline-block; padding: 8px 0; }
  .footer p { margin: 0 0 6px; }
  .footerPhone .phone, .footerPhone a { font-size: 20px; }

  /* ---- плашка cookie: закреплена над нижней панелью, компактная ---- */
  .privacy-policy-cookies-informer_bottom-inside, .privacy-policy-cookies-informer_bottom-over {
      position: fixed; left: 8px; right: 8px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 9998;
      box-sizing: border-box; border: 1px solid #b9b9b9; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.18);
      background: #fff; }
  .privacy-policy-cookies-informer__txt { font-size: 13px !important; line-height: 1.35 !important; color: #333 !important; }

  /* ---- нижняя панель: тёмная «капсула» ---- */
  .m-bar { display: flex; gap: 8px; position: fixed; z-index: 9999; box-sizing: border-box;
           left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right));
           bottom: calc(8px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 18px;
           background: #10294a; box-shadow: 0 4px 18px rgba(8,22,45,.45); }
  .m-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; box-sizing: border-box;
             border-radius: 13px; font: 700 16px/1.1 Arial, Helvetica, sans-serif; text-decoration: none; text-align: center; }
  .m-bar__call { flex: 0 0 42%; background: #ffb81c; color: #10294a; }
  .m-bar__form { flex: 1 1 auto; background: transparent; color: #fff; border: 2px solid #fff; }
  .m-bar a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
  .m-bar svg { flex: 0 0 22px; }
}

@media (max-width: 360px) {
  .logo { width: 120px; height: 26px; }
  .contacts a { font-size: 16px; }
  .m-bar a { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) { .mnav summary::after { transition: none; } }
