/* ==========================================================================
   StoStreet — мобільна версія: шапка та секції сторінки
   Підключати ПІСЛЯ main.css. Десктоп (>=576px) не змінюється.
   ========================================================================== */

/* --- Нові елементи на десктопі сховані -------------------------------- */
.c-logo__short,
.c-call__quick,
.c-mcta,
.c-navigation__footer,
.c-navigation-backdrop { display: none; }

/* Кнопка «Замовити зворотній дзвінок» тепер <a>, а не <a> всередині <button> */
a.c-call__button {
  display: inline-block;
  isolation: isolate;
  color: #1e201d;
  text-decoration: none; }
  a.c-call__button:hover,
  a.c-call__button:focus { color: #0d46a0; text-decoration: none; }

/* --- Мобільна версія --------------------------------------------------- */
@media (max-width: 575px) {
  :root { --hdr-h: 60px; }

  body { padding-top: var(--hdr-h); }

  /* Шапка завжди зафіксована і завжди однакової висоти — без «стрибка» при скролі */
  .w-header,
  body.fixed .w-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 20;
    height: var(--hdr-h);
    padding: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
  .w-header .container { height: 100%; padding: 0 8px 0 12px; }
  .w-header .row { height: 100%; margin: 0; flex-wrap: nowrap; align-items: center; }

  /* Логотип: компактний, в один рядок з кнопками */
  .c-logo,
  body.fixed .c-logo {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    padding: 0;
    font-size: 16px; }
  .c-logo__link { justify-content: flex-start; color: inherit; }
  .c-logo__image,
  body.fixed .c-logo__image { width: 40px; height: 42px; margin-right: 8px; }
  .c-logo__name,
  body.fixed .c-logo__name { align-items: flex-start; font-size: 16px; }
  .c-logo__first-line { font-size: 28px; line-height: .95; letter-spacing: .02em; }
  .c-logo__tagline { display: none; }
  .c-logo__short {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    color: #666;
    white-space: nowrap; }
    .c-logo__short b { color: #0d46a0; }

  /* Права частина: кнопка дзвінка + бургер */
  .c-call {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0; }
  .c-call__wrap { display: none; }

  .c-call__quick {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    margin-right: 4px;
    border-radius: 50%;
    background: #ffea00;
    color: #1e201d; }
    .c-call__quick:active { transform: scale(.94); }

  .c-navigation__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    padding: 0;
    color: #0d46a0;
    fill: currentColor; }
    .c-navigation__button svg { fill: currentColor; }

  /* Панель телефону під шапкою (прокручується разом зі сторінкою) */
  .c-mcta {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: #0d46a0; }
  .c-mcta__phone,
  .c-mcta__callback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap; }
  .c-mcta__phone {
    flex: 1 1 auto;
    gap: 8px;
    color: #fff;
    font-family: "Open Sans", Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .01em;
    border: 1px solid rgba(255, 255, 255, .35); }
    .c-mcta__phone:before {
      content: '';
      flex: 0 0 18px;
      width: 18px; height: 18px;
      background: #ffea00;
      -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
              mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E") center / contain no-repeat; }
    .c-mcta__phone:hover, .c-mcta__phone:focus { color: #fff; text-decoration: none; }
  .c-mcta__callback {
    flex: 0 0 auto;
    padding: 0 12px;
    background: #ffea00;
    color: #1e201d;
    font-family: "Bebas Neue", sans-serif;
    font-size: 19px;
    line-height: 1;
    text-transform: uppercase; }
    .c-mcta__callback:hover, .c-mcta__callback:focus { color: #1e201d; text-decoration: none; }

  /* Висувне меню */
  .c-navigation {
    position: fixed;
    top: 0; bottom: 0;
    right: -100%;
    z-index: 30;
    display: flex;
    flex-direction: column;
    flex: none;
    width: 82vw;
    max-width: 320px;
    height: auto;
    margin: 0;
    padding: 8px 20px 24px;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, .25);
    overflow-y: auto; }
  .c-navigation__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: 44px; height: 44px;
    margin: 0 -10px 8px 0;
    color: #1e201d; }
  .c-navigation__list {
    flex-direction: column;
    width: 100%;
    margin: 0; }
  .c-navigation__item { font-size: 16px; }
  .c-navigation__link {
    padding: 14px 4px;
    font-size: 28px;
    line-height: 1;
    color: #1e201d;
    border-bottom: 1px solid #eee; }
    .c-navigation__link:before { display: none; }
    .c-navigation__link:hover,
    .c-navigation__link.active { color: #0d46a0; }

  .c-navigation__footer {
    display: block;
    margin-top: auto;
    padding-top: 24px; }
  .c-navigation__phone {
    display: block;
    font-family: "Open Sans", Arial, sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #0d46a0;
    text-decoration: none; }
  .c-navigation__hours {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #666; }

  .c-navigation-backdrop {
    display: block;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 25;
    padding: 0;
    background: rgba(0, 0, 0, .45); }
  .c-navigation-backdrop[hidden] { display: none; }

  body.menu-open { overflow: hidden; }
}

/* Дуже вузькі екрани (iPhone SE / 320px) */
@media (max-width: 359px) {
  .c-logo__first-line { font-size: 24px; }
  .c-mcta__phone { font-size: 14px; }
  .c-mcta__callback { padding: 0 8px; font-size: 17px; }
}
