/* ---- Кнопка «Показать ещё» ---- */

.visible-content {
  --sm-accent: #0066CC;   /* цвет кнопки и надписи по умолчанию */
}

.visible-content .more-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .visible-content .more-content { transition: none; }
}

.visible-content .show-more {
  display: table;              /* ширина по содержимому */
  margin: 12px auto;           /* по центру по горизонтали */
  padding: 10px 22px;
  border: 1px solid var(--sm-accent);
  border-radius: 8px;
  background: transparent;
  color: var(--sm-accent);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .3s ease, background-color .3s ease, color .3s ease;
}

@supports (color: color-mix(in srgb, red 50%, transparent)) {
  .visible-content .show-more {
    border-color: color-mix(in srgb, var(--sm-accent) 50%, transparent);
  }
}

@media (hover: hover) {
  .visible-content .show-more:hover {
    border-color: var(--sm-accent);
  }
}

@supports (color: color-mix(in srgb, red 50%, transparent)) {
  @media (hover: hover) {
    .visible-content .show-more:hover {
      background: color-mix(in srgb, var(--sm-accent) 10%, transparent);
    }
  }
}

.visible-content .show-more:focus-visible {
  outline: 2px solid var(--sm-accent);
  outline-offset: 3px;
}

/* ==========================================================================
   ФОРМА ОБРАТНОЙ СВЯЗИ ReMenu — v12
   Цвет задаётся переменной --rf-accent на самом <form>.
   ========================================================================== */

.rf {
  --rf-accent: #009900;
  --rf-radius: 12px;
  --rf-border: 1px;
  --rf-field-h: 40px;
  --rf-gap: 10px;

  /* полная высота поля с рамками — нужна для точного совпадения «Сообщения» */
  --rf-field-outer: calc(var(--rf-field-h) + var(--rf-border) * 2);

  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  font-family: inherit;
  font-size: 16px;
  color: #222;
}

.rf *,
.rf *::before,
.rf *::after { box-sizing: border-box; }

/* ---------- сетка ---------- */

.rf__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: start;
  width: 100%;
}

.rf__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rf__col--fields { gap: var(--rf-gap); }
.rf__col--message { align-self: start; }

/* третий блок по центру вертикали относительно первых двух */
.rf__col--action {
  align-self: center;
  gap: 12px;
}

/* ---------- поле ввода ---------- */

.rf-field {
  position: relative;
  display: block;
  background: #fff;
  border: var(--rf-border) solid var(--rf-accent);
  border-radius: var(--rf-radius);
}

/* неактивная рамка — 50 % цвета; при фокусе становится полной */
@supports (color: color-mix(in srgb, red 50%, transparent)) {
  .rf-field {
    border-color: color-mix(in srgb, var(--rf-accent) 50%, transparent);
  }
}

/* «Сообщение» = 3 поля + 2 зазора, с учётом рамок */
.rf-field--area {
  flex: none;
  display: flex;
  height: calc(var(--rf-field-outer) * 3 + var(--rf-gap) * 2);
}

.rf-input {
  display: block;
  width: 100%;
  height: var(--rf-field-h);
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  border-radius: inherit;
  font-family: inherit;
}

.rf-input::placeholder { color: #8a8a8a; opacity: 1; }

.rf-field--area .rf-input {
  height: 100%;
  padding: 10px 14px;
  resize: none;
}

/* ---------- «падающая рамка» при фокусе ---------- */

.rf-focus {
  position: absolute;
  top: calc(var(--rf-border) * -1);
  left: calc(var(--rf-border) * -1);
  width: calc(100% + var(--rf-border) * 2);
  height: calc(100% + var(--rf-border) * 2);
  border: var(--rf-border) solid var(--rf-accent);
  border-radius: var(--rf-radius);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  /* v12: рамка «раскрывается» изнутри наружу. Раньше она стартовала больше поля
     (scaleX 1.08) и невидимой вылезала за ширину экрана — на телефоне это давало
     горизонтальную прокрутку. Теперь ни в одном кадре за пределы поля не выходит. */
  transform: scaleX(.92) scaleY(.82);
  transition: transform .4s ease, opacity .4s ease, visibility .4s ease;
}

.rf-input:focus + .rf-focus {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* красная рамка у невалидного поля — в два раза толще.
   Толщину наращиваем внутренней тенью, а не border-width:
   border-width сдвинул бы текст на 1 px и сломал совпадение высот
   «Сообщения» с тремя полями. */
.rf-field.is-invalid {
  border-color: #c80000;
  box-shadow: inset 0 0 0 1px #c80000;
}

.rf-field.is-invalid .rf-focus {
  border-color: #c80000;
  border-width: 2px;
}

/* ---------- чекбокс согласия (20 px, по центру текста) ---------- */

.rf-check {
  position: relative;
  display: grid;
  grid-template-columns: 20px auto;
  justify-content: center;      /* вся пара «галочка + текст» по центру блока */
  gap: 10px;
  align-items: center;          /* центр по вертикали относительно надписи */
  cursor: pointer;
}

.rf-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rf-check__box {
  width: 20px;
  height: 20px;
  border: 2px solid #9a9a9a;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: background-color .2s, border-color .2s;
}

.rf-check input:checked + .rf-check__box {
  background: var(--rf-accent);
  border-color: var(--rf-accent);
}

.rf-check input:checked + .rf-check__box::after {
  content: "";
  width: 4px;
  height: 8px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.rf-check input:focus-visible + .rf-check__box {
  outline: 2px solid var(--rf-accent);
  outline-offset: 2px;
}

/* рамка чекбокса в невалидном состоянии — тоже в два раза толще */
.rf-check.is-invalid .rf-check__box {
  border-color: #c80000;
  box-shadow: inset 0 0 0 2px #c80000;
}

.rf-check__text { display: block; }
.rf-check__text a { text-decoration: underline; text-underline-offset: 2px; }

/* переносы строк в согласии: на десктопе работают .rf-br--desk, на телефоне .rf-br--mob */
.rf-br--mob { display: none; }

/* ---------- кнопка: контур + лёгкая заливка, цвет из --rf-accent ---------- */

.rf-btn {
  width: 100%;                      /* на ПК — как в v10, на всю колонку */
  margin: 0 auto;
  height: 56px;
  padding: 0 16px;
  border: var(--rf-border) solid var(--rf-accent);
  border-radius: var(--rf-radius);
  background: transparent;          /* заливку даёт color-mix ниже */
  color: var(--rf-accent);
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .3s ease, background-color .3s ease,
              box-shadow .3s ease, color .3s ease;
}

/* надпись всегда цвета accent — и в покое, и при наведении, и при нажатии */
.rf-btn .white-big {
  color: var(--rf-accent);
  text-decoration: none;
}

/* контур в покое — 50 % цвета, как у полей; заливки в покое нет */
@supports (color: color-mix(in srgb, red 50%, transparent)) {
  .rf-btn {
    border-color: color-mix(in srgb, var(--rf-accent) 50%, transparent);
  }
}

/* наведение и нажатие: контур 2 px + заливка 10 %.
   Второй пиксель рисуем внутренней тенью — текст не сдвигается. */
@media (hover: hover) {
  .rf-btn:hover {
    border-color: var(--rf-accent);
    box-shadow: inset 0 0 0 1px var(--rf-accent);
  }
}

.rf-btn:active {
  border-color: var(--rf-accent);
  box-shadow: inset 0 0 0 1px var(--rf-accent);
}

@supports (color: color-mix(in srgb, red 50%, transparent)) {
  @media (hover: hover) {
    .rf-btn:hover {
      background: color-mix(in srgb, var(--rf-accent) 10%, transparent);
    }
  }

  .rf-btn:active {
    background: color-mix(in srgb, var(--rf-accent) 10%, transparent);
  }
}

.rf-btn:focus-visible { outline: 2px solid var(--rf-accent); outline-offset: 3px; }
.rf-btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- контакты ---------- */

.rf-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;                     /* плотнее, чем было (10 px) */
  min-height: 25px;
}

.rf-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.rf-socials img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

/* три «кружка» под кнопкой — теперь тоже иконки: круг даёт фон, картинка садится внутрь */
.rf-socials .rf-social-text {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--rf-accent);

  overflow: hidden;               /* углы картинки не торчат за круг */
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.rf-socials .rf-social-text img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.rf-socials .rf-social-text:hover { filter: brightness(.9); }

/* ---------- сообщения под формой (четвёртая строка) ---------- */

.rf-result {
  margin-top: 6px;
  min-height: 1.4em;              /* ровно одна строка: место под сообщение держим всегда */
  font-size: 13px;
  line-height: 1.4;
  text-align: center;             /* по центру всей формы */
  color: var(--rf-accent);        /* цвет как у рамок полей */
}

/* сообщение появилось — высота и отступ не меняются, страница не прыгает */
.rf-result.is-ok,
.rf-result.is-err {
  margin-top: 6px;
  color: var(--rf-accent);
}

/* ---------- honeypot ---------- */

.rf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =================================
   Мобильная версия (до 1023 px)
   ================================== */

@media (max-width: 1023px) {
  .rf {
    --rf-field-h: 44px;          /* палец, а не курсор */
    --rf-gap: 10px;
    overflow-x: clip;            /* страховка: форма не создаёт горизонтальную прокрутку */
  }

  .rf__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* блок 2: «Сообщение» больше не тянется на три десктопных поля */
  .rf-field--area { height: 132px; }

  /* 16 px обязательно: при меньшем iOS зумит страницу на фокусе */
  .rf .rf-input {
    font-size: 16px;
    padding: 0 12px;
  }

  .rf-field--area .rf-input { padding: 10px 12px; }

  /* переносы в согласии: на телефоне свои, десктопные гасим */
  .rf-br--desk { display: none; }
  .rf-br--mob { display: inline; }
  .rf-check__text { text-align: left; }

  .rf__col--action { align-self: stretch; gap: 12px; }

  .rf-btn {
    width: 50%;                  /* на телефоне — половина ширины, по центру */
    min-width: 112px;            /* ниже не сжимается, иначе режется «Заказать» */
    padding: 0 8px;
    height: 54px;
    touch-action: manipulation;
  }

  .rf-socials { justify-content: center; gap: 8px; }

  /* сообщение на телефоне крупнее; место под него не резервируем */
  .rf-result {
    font-size: 14px;
  }
}

/* ==========================================================================
   КОНЕЦ Формы заказа ReMenu
    ========================================================================== */


/* ==========================================================================
   Кнопка «Вверх» — вставить В КОНЕЦ css-update.css
   ========================================================================== */

.upbtn {
  z-index: 9999;
  width: 220px;
  height: 220px;
  color: #FFF;
  position: fixed;
  bottom: -220px;
  right: -220px;
  cursor: pointer;
  transform: rotate(-45deg);
  border: 3px solid #BFE2FF;
  transition: all .7s ease-in-out;
  background-color: #337AB7;
}

.upbtn:before {
  content: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none' stroke='%23FFFFFF' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16l10-10 10 10'/%3E%3Cpath d='M6 27l10-10 10 10'/%3E%3C/svg%3E");
  transform: rotate(45deg);
  position: relative;
  display: block;
  left: 60px;
  top: 88px;
}

.upbtn:after {
  content: "ВВЕРХ";
  transform: rotate(-45deg);
  position: relative;
  display: block;
  font-weight: bold;
  font-size: 13px;
  left: -12px;
  top: 14px;
}

.upbtn:hover {
  transform: rotate(45deg);
}

/* ==========================================================================
   Бургер-меню — вставить В КОНЕЦ css-update.css
   ========================================================================== */

.mobile .burger {
  display: block;
  position: fixed;
  bottom: 16px;
  right: 16px;
  background-color: #337AB7;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  z-index: 9999999;
  border: 4px solid #BFE2FF;
  box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  box-sizing: content-box;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.mobile .burger span {
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 4px;
  background-color: #fff;
  border-radius: 13px;
  transition-duration: .4s;
}

.mobile .burger span:nth-child(1) { top: 14px; }
.mobile .burger span:nth-child(2) { top: 23px; }
.mobile .burger span:nth-child(3) { bottom: 14px; }

.mobile .burger.active span:nth-child(1) {
  transform: translate(-15px, 9px) rotate(-45deg);
}
.mobile .burger.active span:nth-child(2) {
  transition-duration: 0s;
  opacity: 0;
}
.mobile .burger.active span:nth-child(3) {
  transform: translate(-15px, -9px) rotate(45deg);
}

.mobile .burger-nav {
  display: block;
  position: fixed;
  bottom: 16px;
  right: 16px;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  z-index: 9999990;
  transition-duration: .4s;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mobile .burger-nav.open {
  background-color: rgba(0, 0, 0, 0.9);
  width: 100vw;
  height: 100vh;
  right: 0;
  bottom: 0;
  border-radius: 0;
}

.mobile .burger-nav ul {
  display: none;
}

.mobile .burger-nav ul.show {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile .burger-nav li {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  width: 100%;
  opacity: 0;
  animation-name: fadein;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

.mobile .burger-nav li:not(:last-child) {
  margin-bottom: 22px;
}

.mobile .burger-nav li a {
  font-size: 24px;
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: #fff;
}

@keyframes fadein {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* ==========================================================================
   Результаты поиска Яндекс: убираем горизонтальную прокрутку
   ========================================================================== */

/* 1. сам блок результатов — не шире экрана */
#ya-site-results,
.ya-site-results {
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* 2. всё внутри — по ширине контейнера, а не по своим фиксированным px */
#ya-site-results *,
.ya-site-results * {
  max-width: 100% !important;
  box-sizing: border-box;
}

/* 3. таблицы, если они есть в выдаче */
#ya-site-results table,
.ya-site-results table {
  width: 100% !important;
  table-layout: fixed;
}

/* 4. картинки и фавиконки в выдаче */
#ya-site-results img,
.ya-site-results img {
  max-width: 100% !important;
  height: auto !important;
}

/* 5. ссылки и адреса страниц — пусть переносятся */
#ya-site-results a,
#ya-site-results div,
#ya-site-results span,
.ya-site-results a,
.ya-site-results div,
.ya-site-results span {
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal !important;
}

/* 6. на всякий случай — на мобильном запрещаем форме поиска
      растягивать страницу */
@media (max-width: 1023px) {
  #ya-site-results,
  .ya-site-results,
  #ya-site-results form,
  .ya-site-results form {
    width: 100% !important;
    max-width: 100% !important;
  }
}