.navi-footer {
  background: #1f2328;
  padding: 0 0 16px 0;
  font-family: Arial, sans-serif;
  color: #ffffff;
  position: relative;
}
.navi-footer * { box-sizing: border-box; }
.navi-footer a { text-decoration: none; outline: none; }
.navi-footer a:focus-visible, .navi-action-btn:focus-visible, .cookie-notice button:focus-visible {
  outline: 2px solid #30A495;
  outline-offset: 2px;
  border-radius: 4px;
}
.navi-footer-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.navi-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(48, 164, 149,0.25), transparent);
  pointer-events: none;
}

.navi-footer-cta-wrapper {
  background-color: #f9fafb;
  padding: 14px 0 18px 0;
}
.navi-footer-cta-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
.navi-footer-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 22px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.navi-footer-cta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navi-footer-cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6f8;
  border: 1px solid rgba(0,0,0,.06);
  color: #30A495;
  font-size: 22px;
  flex-shrink: 0;
}
.navi-footer-cta-text h2 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  color: #1f2328;
  white-space: nowrap;
}
.navi-footer-cta-text p {
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.5;
  max-width: 550px;
  font-weight: 400;
}
.navi-footer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.navi-action-btn {
  flex: 1 1 auto;
  min-width: 120px;
  max-width: 160px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #f4f6f8;
  border: 1px solid rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: .18s;
  font-weight: 400;
  outline: none;
}
.navi-action-btn:hover {
  transform: translateY(-2px);
  border-color: #30A495;
  background: #eefaf7;
}
.navi-action-btn-icon {
  font-size: 18px;
  width: 26px;
  text-align: center;
}
.navi-action-btn-content strong {
  display: block;
  color: #1f2328;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 1px;
}
.navi-action-btn-content span {
  display: block;
  color: #666;
  font-size: 11px;
  font-weight: 400;
}
.navi-btn-max .navi-action-btn-icon { color: #8A2BE2; }
.navi-btn-telegram .navi-action-btn-icon { color: #2AABEE; }
.navi-btn-phone .navi-action-btn-icon { color: #555; }
.navi-btn-email .navi-action-btn-icon { color: #d44637; }
.navi-action-btn.navi-btn-phone .navi-action-btn-content span { display: none; }
.navi-action-btn.navi-btn-phone .navi-action-btn-content strong { margin-bottom: 0; }

.navi-footer-main {
  position: relative;
  background: #1f2328;
  border-radius: 20px;
  padding: 32px 32px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-top: 0;
}
.navi-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
.navi-footer-grid > div:first-child {
  margin-top: -12px;
}

.navi-footer-logo { margin-bottom: 18px; }
.navi-footer-logo img { max-width: 154px; }
.navi-footer-about {
  color: #b7c0cf;
  line-height: 1.45;
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 400;
  opacity: .70;
}
.navi-footer-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.navi-footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400;
  font-size: 14px;
}
.navi-footer-info-item i {
  width: 18px;
  font-size: 16px;
  color: #cfd6e3;
  margin-top: 2px;
}
.navi-footer-info-item div {
  color: #d1d7e0;
  line-height: 1.45;
  font-size: 14px;
  font-weight: 400;
}
.navi-footer-details {
  color: #d1d7e0;
  line-height: 1.45;
  font-size: 12px;
  font-weight: 400;
  opacity: .35;
}
.navi-footer-details span.sep {
  margin: 0 8px;
  color: rgba(255,255,255,.2);
}

.navi-schedule {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: #d1d7e0;
  line-height: 1.5;
}
.navi-schedule-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 240px;
}
.navi-schedule-day { font-weight: 400; }
.navi-schedule-time {
  font-weight: 400;
  color: #ffffff;
  text-align: right;
}

.navi-footer-title {
  position: relative;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
}
.navi-footer-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,.06);
  opacity: .45;
}

.navi-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.navi-footer-links li { margin-bottom: 10px; }
.navi-footer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #d3d8e2;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  transition: .18s;
}
.navi-footer-links a:hover {
  color: #30A495;
  padding-left: 4px;
}

.navi-footer-contact-inner {
  width: 280px;
  margin-left: -10px;
}
.navi-footer-contact-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  color: #d1d7e0;
  font-size: 14px;
  font-weight: 400;
}
.navi-footer-contact-box i {
  font-size: 18px;
  color: #cfd6e3;
  width: 20px;
  margin-top: 2px;
}
.navi-footer-contact-box a.phone-link {
  font-size: 24px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.navi-footer-email-link {
  font-size: 16px;
  color: #20c9ac;
  font-weight: 400;
  transition: color 0.2s;
}
.navi-footer-email-link:hover {
  color: #fff;
}
.navi-footer-address-link {
  color: #d1d7e0;
  font-size: 14px;
  line-height: 1.4;
  display: block;
  transition: color .18s;
  opacity: .78;
}
.navi-footer-address-link:hover {
  color: #30A495;
  text-decoration: underline;
  opacity: 1;
}

.navi-footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  margin-bottom: 16px;
  width: 280px;
  justify-content: flex-start;
}
.navi-footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
  font-size: 16px;
  transition: all .2s ease;
  font-weight: 400;
}
.navi-footer-socials a:hover {
  background: rgba(48, 164, 149,0.2);
  border-color: #30A495;
  color: #fff;
  box-shadow: 0 0 14px rgba(48, 164, 149,0.4);
  transform: translateY(-2px);
}

.navi-footer-cta-mobile {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.navi-footer-cta-mobile .navi-action-btn {
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
  justify-content: center;
  background: #2b3138;
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  padding: 10px 8px;
}
.navi-footer-cta-mobile .navi-action-btn strong {
  color: #fff;
  font-size: 14px;
}
.navi-footer-cta-mobile .navi-action-btn span {
  color: rgba(255,255,255,0.6);
  font-size: 11px;
}
.navi-footer-cta-mobile .navi-action-btn:hover {
  background: #353c44;
  border-color: #30A495;
}

.navi-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  padding-top: 8px;
  padding-bottom: 2px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}
.navi-footer-copy {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
  color: inherit;
}
.navi-footer-bottom-links { display: flex; align-items: center; gap: 12px; }
.navi-footer-bottom-links .navi-footer-linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: rgba(255,255,255,0.45); font-size: 12px; font-weight: 400; transition: .18s; }
.navi-footer-bottom-links .navi-footer-linkbtn:hover { color: #30A495; }
.navi-footer-bottom-links a {
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  font-weight: 400;
  transition: .18s;
}
.navi-footer-bottom-links a:hover { color: #30A495; }
.navi-footer-bottom-sep {
  color: rgba(255,255,255,0.3);
  font-size: 12px;
  user-select: none;
}

@media(max-width:991px) {
  .navi-footer-accordion .navi-footer-links { display: none; }
  /* Интеграция класса .open для безопасной работы аккордеона на CSS */
  .navi-footer-accordion.open .navi-footer-links { display: block; }
  
  .navi-footer-accordion .navi-footer-title { cursor: pointer; user-select: none; }
  .navi-footer-accordion .navi-footer-title::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 400;
    font-size: 20px;
    color: rgba(255,255,255,0.5);
  }
  .navi-footer-accordion.open .navi-footer-title::after { content: '−'; }
}

@media(max-width:1500px) {
  .navi-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .navi-footer-contact-inner { width: auto; margin-left: 0; }
  .navi-footer-socials { width: auto; }
  .navi-footer-grid > div:first-child { margin-top: 0; }
}
@media(max-width:1200px) {
  .navi-footer-cta { flex-direction: column; align-items: flex-start; }
  .navi-footer-cta-text h2 { white-space: normal; }
  .navi-footer-actions { flex-wrap: wrap; justify-content: flex-start; }
  .navi-action-btn { min-width: 150px; }
}

/* === МИНИМАЛИСТИЧНЫЙ МОБИЛЬНЫЙ ФУТЕР === */
@media(max-width:991px) {
  .navi-footer-cta-wrapper { display: none; }
  .navi-footer-container { padding: 0 12px; }
  .navi-footer-main { 
    padding: 16px 14px 12px;
    border-radius: 14px;
  }
  .navi-footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .navi-footer-grid > div:nth-child(1) { display: none; }
  .navi-footer-accordion { display: none; }
  .navi-footer-grid > div:nth-child(4) { display: none; }
  
  .navi-footer-grid > div:last-child { padding-top: 0; }
  .navi-footer-grid > div:last-child > .navi-footer-title { display: none; }
  
  .navi-footer-contact-inner { width: 100%; margin-left: 0; }
  
  /* Мобильные CTA — MAX и Telegram */
  .navi-footer-cta-mobile { 
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 14px;
  }
  .navi-footer-cta-mobile .navi-action-btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
    background: #2b3138;
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    padding: 10px 8px;
  }
  .navi-footer-cta-mobile .navi-action-btn strong {
    color: #fff;
    font-size: 14px;
  }
  .navi-footer-cta-mobile .navi-action-btn span {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
  }
  .navi-footer-cta-mobile .navi-action-btn:hover {
    background: #353c44;
    border-color: #30A495;
  }
  
  /* Центрируем все контакты */
  .navi-footer-contact-box {
    justify-content: center;
    text-align: center;
    margin-bottom: 8px;
    gap: 10px;
  }
  .navi-footer-contact-box div { text-align: center; }
  .navi-footer-contact-box a.phone-link { 
    font-size: 20px; 
    letter-spacing: -0.3px;
  }
  .navi-footer-email-link { font-size: 14px; }
  
  .navi-footer-socials { display: none; }
  
  .navi-footer-address { max-width: none; }
  .navi-footer-address-link {
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
  }
  
  .navi-footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-top: 10px;
    margin-top: 12px;
    gap: 6px;
  }
  .navi-footer-bottom-links { display: none; }
  .navi-footer-copy { margin: 0 auto; font-size: 12px; }
}

/* === Уведомление Cookie — компактный баннер слева === */
.cookie-notice {
  position: fixed;
  left: 32px;
  bottom: 24px;
  width: calc(100% - 64px);
  max-width: 449px;             /* уменьшено на 15% (было 528) */
  z-index: 2147483647;          /* максимальный — выше ВСЕХ, включая Jivo */
  display: none;
  flex-direction: column;       /* вертикальная компоновка: контент сверху, кнопки снизу */
  gap: 16px;
  padding: 18px 22px;
  background: rgba(31, 35, 40, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
  font-family: Arial, sans-serif;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-notice.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.cookie-notice-content {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}
.cookie-notice-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}
.cookie-notice-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}
.cookie-notice-link {
  color: #30A495;
  text-decoration: none;
  font-size: 13px;
  transition: 0.2s;
}
.cookie-notice-link:hover {
  text-decoration: underline;
}
.cookie-notice-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  width: 100%;
  margin-top: 8px;             /* отступ между текстом и кнопкой "Принять все" */
}
.cookie-btn {
  border: none;
  outline: none;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s;
  white-space: nowrap;
  font-family: Arial, sans-serif;
  text-align: center;
  min-height: 44px;
}
.cookie-btn-primary {
  background: #30A495;
  color: #fff;
}
.cookie-btn-primary:hover {
  background: #15a085;
  transform: translateY(-1px);
}
.cookie-btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}
.cookie-btn-text {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  min-height: 36px;
}
.cookie-btn-text:hover {
  color: #30A495;
}

/* Обёртка для кнопок «Отклонить» + «Настроить» — в одну строку на ПК */
.cookie-actions-row {
  display: flex;
  gap: 6px;
}
.cookie-actions-row .cookie-btn-secondary,
.cookie-actions-row .cookie-btn-text {
  flex: 1 1 0;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  min-height: 40px;
  white-space: nowrap;
}
.cookie-actions-row .cookie-btn-secondary:hover,
.cookie-actions-row .cookie-btn-text:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 767px) {
  .cookie-notice {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    transform: none;
    flex-direction: column;
    gap: 12px;
    padding: 16px 16px max(16px, env(safe-area-inset-bottom));
    border-radius: 0;
    max-height: none;
    overflow: visible;
  }
  .cookie-notice.show {
    transform: translateY(0);
  }
  .cookie-notice-content {
    flex: 1 1 auto;
  }
  .cookie-notice-title { font-size: 15px; }
  .cookie-notice-text { font-size: 13px; margin: 0; }
  .cookie-notice-link { font-size: 13px; }
  .cookie-notice-actions {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    gap: 8px;
  }
  /* На мобиле: 2 кнопки — Принять / Отклонить (короткий текст) */
  .cookie-hide-mobile {
    display: none;
  }
  .cookie-btn-primary,
  .cookie-btn-secondary {
    flex: 1 1 0;
    min-height: 48px;
    font-size: 14px;
    padding: 12px 8px;
  }
  /* "Настроить cookie" — на мобиле скрываем (доступно через футер) */
  .cookie-btn-text {
    display: none;
  }
  /* На мобиле .cookie-actions-row содержит только "Отклонить" — растягиваем */
  .cookie-actions-row {
    flex: 1 1 0;
  }
  .cookie-actions-row .cookie-btn-secondary {
    flex: 1 1 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
  }
}

/* === Очень узкие экраны: Samsung A30s (360px), S21 FE, iPhone SE (375px) === */
@media (max-width: 380px) {
  .cookie-notice {
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
    gap: 10px;
  }
  .cookie-notice-title { font-size: 14px; }
  .cookie-notice-text { font-size: 12px; line-height: 1.4; }
  .cookie-notice-link { font-size: 12px; }
  .cookie-notice-actions {
    gap: 6px;
    margin-top: 4px;
  }
  .cookie-btn-primary,
  .cookie-btn-secondary {
    min-height: 44px;
    font-size: 13px;
    padding: 10px 6px;
  }
  /* Модальное окно настроек */
  .cookie-settings-modal {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    padding: 16px;
    border-radius: 12px;
  }
  .cookie-settings-title { font-size: 16px; }
  .cookie-category-name { font-size: 14px; }
  .cookie-category-desc { font-size: 12px; line-height: 1.4; }
  .cookie-settings-actions .cookie-btn {
    min-width: 0;
    font-size: 13px;
    padding: 10px 8px;
  }
}

/* === JivoSite: понижаем z-index, чтобы cookie-notice был ПОВЕРХ чата ===
   Jivo создаёт jdiv элементы с inline z-index ~2147483000.
   Cookie-notice имеет z-index 2147483647 (максимальный int32), но Jivo
   может перекрывать из-за inline-стилей. Перебиваем через !important. */
jdiv,
[id*="jivo-"],
[class*="jivo_"],
[class*="jivo-"],
.jivo_widget,
.jivo-frame,
#jivo-iframe-container,
.globalClass_jivo-site {
  z-index: 9999998 !important;
}
/* Cookie-notice гарантированно ВЫШЕ Jivo */
.cookie-notice,
.cookie-settings-modal,
.cookie-settings-overlay {
  z-index: 2147483647 !important;
}

/* === Модальное окно настроек cookie === */
.cookie-settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0);
  z-index: 2147483646;          /* чуть ниже баннера, но выше всего остального */
  pointer-events: none;
  transition: background 0.25s ease;
}
.cookie-settings-overlay.show {
  background: rgba(15, 23, 42, 0.55);
  pointer-events: auto;
}
.cookie-settings-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 48px);
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  z-index: 2147483647;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 28px;
}
.cookie-settings-modal.show {
  opacity: 1;
  visibility: visible;
}
.cookie-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E3E8EB;
}
.cookie-settings-title {
  font-size: 20px;
  font-weight: 700;
  color: #1F2A2E;
  margin: 0;
}
.cookie-settings-close {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #5F6F75;
  font-size: 24px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.cookie-settings-close:hover {
  background: #f1f5f9;
  color: #1F2A2E;
}
.cookie-category {
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}
.cookie-category:last-of-type {
  border-bottom: none;
}
.cookie-category-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cookie-category-info {
  flex: 1 1 auto;
  min-width: 0;
}
.cookie-category-name {
  font-size: 15px;
  font-weight: 700;
  color: #1F2A2E;
  margin: 0 0 4px;
}
.cookie-category-desc {
  font-size: 13px;
  color: #5F6F75;
  line-height: 1.5;
  margin: 0;
}
.cookie-toggle {
  flex: 0 0 auto;
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #cbd5e1;
  border-radius: 24px;
  transition: 0.2s;
}
.cookie-toggle-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: #30A495;
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(20px);
}
.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-toggle input:disabled + .cookie-toggle-slider::before {
  background: #f1f5f9;
}
.cookie-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #E3E8EB;
}
.cookie-settings-actions .cookie-btn {
  flex: 1 1 auto;
  min-width: 140px;
}
.cookie-settings-link {
  flex: 1 1 100%;
  text-align: center;
  color: #30A495;
  text-decoration: none;
  font-size: 13px;
  padding: 8px;
}
.cookie-settings-link:hover {
  text-decoration: underline;
}
@media (max-width: 767px) {
  .cookie-settings-modal {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    padding: 20px;
    border-radius: 16px;
  }
  .cookie-settings-title { font-size: 18px; }
  .cookie-settings-actions {
    flex-direction: column;
  }
  .cookie-settings-actions .cookie-btn {
    width: 100%;
  }
}

/* =====================================================================
   Дизайн-ревью (10.2026): тап-зоны, мелкий текст, контраст,
   кнопка «Наверх», компактный баннер cookie
   ===================================================================== */

/* п.2 — подписи кнопок связи не мельче 12px */
.navi-action-btn-content span,
.navi-footer-cta-mobile .navi-action-btn span { font-size: 12px; }

/* п.4 — ИНН/ОГРН и нижняя строка читаемее */
.navi-footer-details { opacity: .7; }
.navi-footer-details span.sep { color: rgba(255,255,255,.4); }
.navi-footer-bottom,
.navi-footer-bottom-links a,
.navi-footer-bottom-links .navi-footer-linkbtn { color: rgba(255,255,255,.68); }
.navi-footer-bottom-sep { color: rgba(255,255,255,.4); }
.navi-footer-address-link { opacity: .9; }

/* п.1 — тап-зоны не меньше 44px (раскладка не меняется) */
.navi-footer-contact-box a.phone-link,
.navi-footer-email-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.navi-footer-address-link { padding: 8px 0; }
.navi-footer-contact-box { align-items: center; margin-bottom: 2px; }
.navi-footer-socials { gap: 10px; }
.navi-footer-socials a { width: 44px; height: 44px; }
.navi-footer-links a,
.navi-footer-bottom-links a,
.navi-footer-bottom-links .navi-footer-linkbtn { position: relative; }
.navi-footer-bottom-links a::before,
.navi-footer-bottom-links .navi-footer-linkbtn::before {
  content: '';
  position: absolute;
  inset: -14px -6px;
}
@media (max-width: 991px) {
  .navi-footer-links li { margin-bottom: 0; }
  .navi-footer-links a { padding: 10px 0; }
  .navi-footer-accordion .navi-footer-title { min-height: 44px; display: flex; align-items: center; }
}

/* п.3 — кнопка «Наверх»: заметная, фирменный цвет */
#back-to-top {
  position: fixed;
  bottom: 90px;           /* над JivoSite */
  right: 24px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #30A495;
  border: 0;
  box-shadow: 0 6px 18px rgba(15,23,42,.22);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s, box-shadow .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: #268a7d; box-shadow: 0 8px 22px rgba(48,164,149,.4); }
#back-to-top:active { transform: scale(.94); }
#back-to-top:focus-visible { outline: 3px solid #1f2328; outline-offset: 2px; }
@media (max-width: 767px) {
  #back-to-top { right: 16px; bottom: 84px; width: 48px; height: 48px; }
}

/* п.10 — cookie: компактная полоса внизу вместо крупной карточки */
.cookie-notice {
  left: 50%;
  right: auto;
  bottom: 16px;
  width: calc(100% - 32px);
  max-width: 880px;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 12px 14px 12px 20px;
  border-radius: 14px;
  transform: translate(-50%, 20px);
}
.cookie-notice.show { display: flex !important; transform: translate(-50%, 0); }   /* legacy.css: .show{display:block} */
.cookie-notice-content { text-align: left; }
.cookie-notice-title { display: none; }
.cookie-notice-text { font-size: 13px; line-height: 1.4; }
.cookie-notice-actions {
  flex-direction: row;
  align-items: center;
  width: auto;
  margin-top: 0;
}
.cookie-notice-actions .cookie-btn { min-height: 40px; padding: 8px 14px; font-size: 13px; }
.cookie-actions-row .cookie-btn-secondary,
.cookie-actions-row .cookie-btn-text { flex: 0 0 auto; }
@media (max-width: 767px) {
  .cookie-notice {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    transform: translateY(20px);
  }
  .cookie-notice.show { transform: translateY(0); }
  .cookie-notice-text { font-size: 13px; }
  .cookie-notice-actions { width: 100%; }
  .cookie-notice-actions .cookie-btn { min-height: 44px; }
  .cookie-actions-row .cookie-btn-secondary { flex: 1 1 0; }
}

/* === правка п.11: крупная панель cookie во всю ширину ===
   Почему так: панель снизу на всю ширину заметнее «карточки» в углу; главная
   кнопка «Согласиться» — самая крупная и контрастная, стоит последней справа
   (там заканчивается взгляд при чтении слева направо); на телефоне — во всю
   ширину внизу экрана (зона большого пальца). «Отклонить» и «Настроить» видны,
   но второстепенны. Страницу не перекрывает — сайт остаётся доступным. */
.cookie-notice.cookie-notice--bar {
  left: 50%;
  right: auto;
  bottom: 20px;
  width: calc(100% - 40px);
  max-width: 1180px;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  border-radius: 18px;
  background: #1F2A2E;
  border: 1px solid rgba(48, 164, 149, .45);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .45), 0 0 0 4px rgba(48, 164, 149, .12);
  transform: translate(-50%, 24px);
}
.cookie-notice.cookie-notice--bar.show { transform: translate(-50%, 0); }
.cookie-notice--bar .cookie-notice-icon { flex: 0 0 auto; font-size: 40px; line-height: 1; }
.cookie-notice--bar .cookie-notice-content { text-align: left; }
.cookie-notice--bar .cookie-notice-title { display: block; font-size: 19px; margin-bottom: 6px; }
.cookie-notice--bar .cookie-notice-actions .cookie-btn-primary { min-height: 56px; padding: 14px 32px; font-size: 18px; }
.cookie-notice--bar .cookie-notice-actions .cookie-actions-row .cookie-btn { min-height: 48px; padding: 10px 16px; font-size: 14px; }
.cookie-notice--bar .cookie-notice-text { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.88); }
.cookie-notice--bar .cookie-notice-link { font-size: 15px; color: #5FD3C3; }
.cookie-notice--bar .cookie-notice-actions { flex-direction: row; align-items: center; width: auto; margin: 0; gap: 12px; }
.cookie-notice--bar .cookie-actions-row { gap: 8px; }
.cookie-notice--bar .cookie-actions-row .cookie-btn-secondary,
.cookie-notice--bar .cookie-actions-row .cookie-btn-text { flex: 0 0 auto; background: transparent; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.85); padding: 10px 16px; min-height: 48px; font-size: 14px; font-weight: 500; border-radius: 12px; }
.cookie-notice--bar .cookie-actions-row .cookie-btn-text { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.cookie-notice--bar .cookie-btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; min-width: 220px; padding: 14px 32px; font-size: 18px; font-weight: 700; border-radius: 14px; background: #30A495; color: #fff; box-shadow: 0 6px 20px rgba(48, 164, 149, .45); animation: naviCookiePulse 2.4s ease-in-out 1.2s 3; }
.cookie-notice--bar .cookie-btn-primary:hover { background: #2A9585; transform: translateY(-1px); box-shadow: 0 8px 26px rgba(48, 164, 149, .55); }
@keyframes naviCookiePulse { 0%, 100% { box-shadow: 0 6px 20px rgba(48,164,149,.45), 0 0 0 0 rgba(48,164,149,.5); } 50% { box-shadow: 0 6px 20px rgba(48,164,149,.45), 0 0 0 10px rgba(48,164,149,0); } }
@media (prefers-reduced-motion: reduce) { .cookie-notice--bar .cookie-btn-primary { animation: none; } }

@media (max-width: 991px) {
  .cookie-notice.cookie-notice--bar { flex-wrap: wrap; gap: 14px 16px; padding: 18px 20px; }
  .cookie-notice--bar .cookie-notice-content { flex: 1 1 calc(100% - 60px); }
  .cookie-notice--bar .cookie-notice-actions { width: 100%; justify-content: flex-end; }
}
@media (max-width: 767px) {
  .cookie-notice.cookie-notice--bar { left: 0; right: 0; bottom: 0; width: 100%; max-width: none; border-radius: 18px 18px 0 0; border-width: 1px 0 0; transform: translateY(24px); padding: 18px 16px max(16px, env(safe-area-inset-bottom)); gap: 12px 14px; }
  .cookie-notice.cookie-notice--bar.show { transform: translateY(0); }
  .cookie-notice--bar .cookie-notice-icon { font-size: 32px; }
  .cookie-notice--bar .cookie-notice-content { flex: 1 1 calc(100% - 50px); }
  .cookie-notice--bar .cookie-notice-title { font-size: 17px; margin-bottom: 4px; }
  .cookie-notice--bar .cookie-notice-text, .cookie-notice--bar .cookie-notice-link { font-size: 14px; }
  .cookie-notice--bar .cookie-notice-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .cookie-notice--bar .cookie-btn-primary { width: 100%; min-height: 56px; font-size: 18px; }
  .cookie-notice--bar .cookie-actions-row { display: flex; gap: 8px; }
  .cookie-notice--bar .cookie-actions-row .cookie-btn-secondary,
  .cookie-notice--bar .cookie-actions-row .cookie-btn-text { display: inline-flex; align-items: center; justify-content: center; flex: 1 1 0; min-height: 44px; font-size: 14px; }
}
@media (max-width: 380px) {
  .cookie-notice--bar .cookie-notice-icon { display: none; }
  .cookie-notice--bar .cookie-notice-content { flex-basis: 100%; }
  .cookie-notice--bar .cookie-notice-text { font-size: 13px; }
}
