/* ==========================================================================
   VTS - mobil"naya versiya vtsspb.ru
   Podklyuchat" POSLE /build/common.css:
       <link rel="stylesheet" href="/mobile.css">
   Vse pravila zaperty v mediazaprosah - na desktope nichego ne menyaetsya.
   ========================================================================== */

@media (max-width: 767px) {

  /* ---------- karkas: fiksirovannye 1200px > rezina ---------- */
  html { -webkit-text-size-adjust: 100%; }

  body {
    overflow-x: hidden;                 /* dekor .envelope vylezaet za kray */
  }

  /* Mesto pod nizhnyuyu panel" zvonka. Obychnyy padding-bottom u body zdes" ne
     rabotaet: soderzhimoe sverstano floatami, i body shlopyvaetsya po vysote,
     poetomu panel" perekryvala poslednyuyu stroku podvala. Ochischennyy blok-rasporka
     vstaet nizhe floatov i chestno dobavlyaet vysotu stranice. */
  body::after {
    content: "";
    display: block;
    clear: both;
    height: 76px;
  }

  .w {
    width: 100%;
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  img, iframe, video { max-width: 100%; }
  img { height: auto; }

  /* iOS ne zumit stranicu, esli pole ne men"she 16px */
  input, textarea, select { max-width: 100%; font-size: 16px; }

  /* ---------- shapka ---------- */
  .header { margin-bottom: 16px; }

  .header__core { padding: 12px 0 10px; }

  .headerGrid { display: block; }

  .headerGrid__logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
    width: 100%;
    margin: 0 0 12px;
  }

  .logo__img { max-width: 132px; }
  .logo__slogan { display: none; }      /* slogan v dve stroki s"edaet pervyy ekran */

  .headerGrid__content { display: block; }

  .headeInfo { display: block; margin-bottom: 0; }

  .headeInfo__tels { display: flex; flex-wrap: wrap; gap: 2px 16px; }

  .headerTels__item { margin-bottom: 0 !important; }

  .someTel { font-size: 17px; }

  /* pustye spiski s ssylkami tel:+ - ubiraem, oni zanimayut mesto */
  .headerTels:has(> .headerTels__item > a[href="tel:+"]),
  .footerTels:has(> .footerTels__item > a[href="tel:+"]:only-child) { display: none; }

  .headeInfo__address { display: none; } /* adres i chasy est" v podvale i v menyu */

  .headeInfo__calc {
    display: block;
    width: 100%;
    margin-top: 10px;
    text-align: center;
  }

  .header__menu { display: none; }      /* navigaciya uhodit v burger */

  /* knopka "menyu" */
  .vtsBurger {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #eef4f8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
  }

  .vtsBurger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #005f8b;
    border-radius: 1px;
  }

  /* ---------- vydvizhnoe menyu ---------- */
  .vtsNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10020;
    display: flex;
    flex-direction: column;
    padding: 14px 14px calc(16px + env(safe-area-inset-bottom));
    background: #fff;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .25s ease;
    visibility: hidden;
  }

  .vtsNav.is-open { transform: none; visibility: visible; }

  .vtsNav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: bold;
    color: #043f59;
  }

  .vtsNav__close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: #eef4f8;
    color: #005f8b;
    font-size: 24px;
    line-height: 1;
  }

  .vtsNav__list { list-style: none; margin: 0; padding: 0; }

  .vtsNav__list li { border-bottom: 1px solid #e3eaef; }

  .vtsNav__list a {
    display: block;
    padding: 14px 2px;
    font-size: 16px;
    color: #005f8b;
    text-decoration: none;
  }

  .vtsNav__list a:active { background: #f5f9fc; }

  .vtsNav__foot {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .vtsNav__foot a { font-size: 17px; color: #000; text-decoration: none; }

  .vtsNav__note { font-size: 13px; color: #667; margin-top: 4px; }

  body.vtsNav-open { overflow: hidden; }

  /* ---------- nizhnyaya panel": pozvonit" / zayavka ---------- */
  .vtsBar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    display: flex;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .12);
  }

  .vtsBar .btn {
    flex: 1 1 0;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
  }

  .vtsBar .vtsBar__call {
    background: #eef4f8;
    color: #005f8b;
    border-bottom: 3px solid #cfe0ec;
    box-shadow: none;
    text-shadow: none;
  }

  /* ---------- kontent: ubiraem sdvig pod levuyu kolonku ---------- */
  .main { float: none; width: 100%; }

  .main__wrap { padding-left: 0; padding-bottom: 20px; }

  .side {
    float: none;
    margin-left: 0;
    position: static;
    width: 100%;
    margin-top: 24px;
  }

  /* ---------- setka bootstrap-podobnyh kolonok > v odnu kolonku ---------- */
  .row { margin-left: 0; margin-right: 0; }

  [class*="col-"] { padding-left: 0; padding-right: 0; }

  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* 12 napravleniy: na telefone - kompaktnyy spisok, po odnomu v stroke:
     v dve kolonki iz treh kartochek v ryadu ostayutsya dyrki, a v tri - tesno */
  .directions .directions__row { display: block; margin-bottom: 0; }

  .directions .directions__row .col-4 {
    display: block;
    flex: none;
    max-width: 100%;
    margin-bottom: 0;
  }

  .directions__row:not(:last-child) { margin-bottom: 10px; }

  .direction {
    position: relative;
    padding: 9px 0 9px 22px;
    margin-bottom: 0;
    border-bottom: 1px solid #eef3f7;
    background: transparent;
  }

  .direction__icn { top: 10px; }

  .direction__title { display: block; padding-bottom: 3px; font-size: 14px; }

  .direction__town {
    display: inline;
    min-width: 0;
    white-space: normal;
    padding-right: 0;
  }

  .direction__time, .direction__period {
    display: inline;
    font-size: 13px;
    color: #555;
  }

  .direction__time { padding-bottom: 0; }

  .direction__time::after { content: " \00b7  "; }

  /* ---------- bloki ---------- */
  .title--h1 { font-size: 26px; line-height: 1.25; margin-bottom: 16px; }

  .title--h2 { font-size: 20px; }

  /* Zagolovki vnutri .txt na desktope zadany v vw (2.2 / 1.98 / 1.76 / 1.54 /
     1.43 / 1.32vw): na shirine 393 px eto 8-9 px - pochti ne chitaetsya, hotya
     tekst <p> ryadom idet 16 px. Fiksiruem razmery v px, h2 - zametno krupnee
     obychnogo teksta. */
  .h1, .txt h1 { font-size: 26px; line-height: 1.25; margin-top: 24px; margin-bottom: 12px; }
  .h2, .txt h2 { font-size: 22px; line-height: 1.3; margin-top: 26px; margin-bottom: 12px; }
  .h3, .txt h3 { font-size: 19px; line-height: 1.3; margin-top: 22px; margin-bottom: 10px; }
  .h4, .txt h4 { font-size: 17px; line-height: 1.35; margin-top: 20px; margin-bottom: 8px; }
  .h5, .txt h5 { font-size: 16px; line-height: 1.4; margin-top: 18px; margin-bottom: 6px; }
  .h6, .txt h6 { font-size: 15px; line-height: 1.4; margin-top: 16px; margin-bottom: 6px; }

  .sendBlock { margin-top: 20px; margin-bottom: 24px; }

  .sendBlock__content { padding: 16px 14px 20px; }

  /* dekorativnye sloi .envelope na telefone dayut polosatuyu polosu u kraya */
  .envelope { border-radius: 6px; box-shadow: 0 2px 10px rgba(197, 210, 222, .45); }
  .envelope:before, .envelope:after { display: none; }

  .infBlock { padding: 16px; display: block; }

  /* knopka i blok .stock idut drug pod drugom - nuzhen otstup mezhdu nimi */
  .infBlock__btn {
    width: 100%;
    margin: 0 0 16px;
    text-align: center;
  }

  .stock { max-width: 100%; }

  .features__img { width: 84px; margin-right: 14px; }

  .features__title { font-size: 15px; }

  .features__item { margin-bottom: 14px; }

  /* ---------- shirokie tablicy i karty na vnutrennih stranicah ---------- */
  table { max-width: 100%; }

  .txt table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* V tekstah uslug vstrechayutsya dlinnye slitnye stroki bez probelov
     ("Priem konteynerov,vagonov,platform,poluvagonov" - 374 px v kolonke 315 px)
     i oni vypirali za ekran. break-word rvet tol"ko to, chto ne vlezaet. */
  .main__wrap .txt,
  .main__wrap .txt * {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .shortSearch__input { font-size: 16px; }

  /* iOS Safari zumit stranicu pri fokuse v pole so shriftom men"she 16 px,
     a na forme rascheta vse polya byli 14 px. */
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px;
  }

  /* ---------- forma zayavki v popape #modal ---------- */
  /* Samu formu gruzit ih zhe skript cherez ajax (POST / s comp=catblock),
     poetomu razmetku ne trogaem - tol"ko otstupy, polya i podpis sverhu
     (podpis vstavlyaet mobile.js). */
  #modal .popup__inner { padding: 18px 16px 20px; }

  /* krestik zakrytiya u #modal stoit s right:-55px ot kartochki: na 393 px
     kartochka zanimaet pochti ves" ekran, i krestik uezzhaet za pravyy kray -
     na telefone zakryt" popap mozhno tol"ko po temnoy podlozhke. Stavim ego
     v pravyy verhniy ugol kartochki. */
  #modal .mfp-close {
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    padding: 0;
    line-height: 36px;
    font-size: 26px;
    border-radius: 50%;
    background: #eef4f8;
    color: #005f8b !important;
    opacity: 1;
    z-index: 10;
  }

  .vtsFormIntro { margin-bottom: 16px; }

  #modal .vtsFormIntro__title { padding-right: 46px; }

  .vtsFormIntro__title {
    margin-bottom: 6px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: bold;
    color: #043f59;
  }

  .vtsFormIntro__text {
    font-size: 14px;
    line-height: 1.45;
    color: #6b7c8a;
  }

  /* "Imya" i "Telefon" stoyat v odnom .row dvumya .col-6: na telefone oni
     rastyagivayutsya na 100% i slivalis" v odin blok - nuzhen otstup mezhdu nimi */
  #modal-content .form .row > [class*="col-"] { margin-bottom: 12px; }

  #modal-content .form .row > [class*="col-"]:last-child { margin-bottom: 0; }

  #modal-content .form__row { margin-bottom: 14px; }

  #modal-content .form__row--rules { margin-top: 0; padding-left: 0; }

  #modal-content .form__row--send { padding-left: 0; }

  #modal-content .input,
  #modal-content .textarea { padding: 13px 16px; border-radius: 10px; }

  #modal-content .form__send { width: 100%; min-height: 48px; }

  #modal-content .formBid__stock { padding-left: 0 !important; }

  #modal-content .stock__text { font-size: 14px; }

  /* ---------- podval ---------- */
  .footerMenu { border-bottom: 0; font-size: 14px; }

  .footerMenu__list { display: block; }

  .footerMenu__link { padding: 12px 0; }

  .footerMenu__item { display: block; }

  .footerGrid { display: block; }

  .footerTels__item { margin-bottom: 8px !important; }

  .footerSoc { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; }

  .footerSoc__item { margin: 0 !important; }

  .footerAddress { text-align: left; margin: 12px 0; }

  /* ---------- plashka cookie: kompaktno ---------- */
  #cookie-notice {
    font-size: 13px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    z-index: 9999;
  }

  .cookie-text { font-size: 13px; margin: 0 0 8px; }

  .cookie-buttons { gap: 14px; margin-bottom: 0; }

  .about-cookie { font-size: 13px; }
}

/* planshety: podzhimaem konteyner, chtoby ne bylo gorizontal"noy prokrutki */
@media (min-width: 768px) and (max-width: 1024px) {
  .w { width: 100%; max-width: 100%; padding-left: 16px; padding-right: 16px; }
  .main__wrap { padding-left: 300px; }
  .side { width: 260px; }
}