/* ============================================
     ПОДКЛЮЧЕНИЕ ШРИФТА UBUNTU
     ============================================ */

@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 300;
  src: url(https://fonts.gstatic.com/s/ubuntu/v21/4iCv6KVjbNBYlgoC1CzjvWyNL4U.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/ubuntu/v21/4iCv6KVjbNBYlgoC1CzjvWyNL4U.woff2) format('woff2');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 500;
  src: url(https://fonts.gstatic.com/s/ubuntu/v21/4iCv6KVjbNBYlgoC1CzjvWyNL4U.woff2) format('woff2');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 700;
  src: url(https://fonts.gstatic.com/s/ubuntu/v21/4iCv6KVjbNBYlgoC1CzjvWyNL4U.woff2) format('woff2');
}

/* ============================================
     ВСЕ СТИЛИ
     ============================================ */

/* --- ОСНОВНАЯ ПОДЛОЖКА --- */
.menu-wrapper {
  position: relative;
  padding: 25px 20px 20px;
  width: 100%;
  max-width: 458px;
  margin: 0 auto;
  height: auto !important;
  min-height: 400px;
  background: #ffffff !important;
  border-radius: 0px;
  box-shadow: 0px 0px 25px 10px rgba(0,0,0,0.1);
  box-sizing: border-box;
  font-family: 'Ubuntu', Arial, sans-serif;
}

/* --- ЛОГОТИП (ЦЕНТР) --- */
.logo-link {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.logo-img {
  max-width: 190px;
  height: auto;
  display: block;
}

/* --- АДРЕС (ЦЕНТР) --- */
.address-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}
.address-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.address-text {
  font-size: 15px;
  color: #000;
  line-height: 1.4;
  font-weight: 300;
  text-align: left;
  font-family: 'Ubuntu', Arial, sans-serif;
}

/* --- СОЦСЕТИ + ТЕЛЕФОНЫ (ОДИН БЛОК ПО ЦЕНТРУ) --- */
.contacts-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.social-icons {
  display: flex;
  gap: 8px;
}
.social-icon {
  width: 24px;
  height: 24px;
  display: block;
}
.phones {
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  font-family: 'Ubuntu', Arial, sans-serif;
}
.phones a {
  color: #000;
  text-decoration: none;
  font-weight: 300;
  display: block;
  font-family: 'Ubuntu', Arial, sans-serif;
}
.phones a:hover { color: var(--uc-color-color-wm5en, #0066ff); }

/* --- КНОПКИ (ЦЕНТР) --- */
.buttons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 12px 0 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 300;
  color: #ffffff !important;
  background-color: var(--uc-button-bgcolor-sJLClTE0y, #ff8400);
  border: 1px solid var(--uc-button-bgcolor-sJLClTE0y, #ff8400);
  border-radius: 30px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 0 1 auto;
  min-width: 160px;
  font-family: 'Ubuntu', Arial, sans-serif;
}
.btn:hover {
  background: rgba(255,132,0,0.85);
  box-shadow: 0px 15px 30px -10px rgba(255,132,0,0.3);
}
.btn-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  filter: brightness(0) invert(1);
}
.btn-icon img {
  width: 100%;
  height: auto;
}

/* --- МЕНЮ (ЦЕНТР) --- */
.menu-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  color: var(--uc-color-color-wm5en, #0066ff);
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  user-select: none;
  background: transparent;
  font-family: 'Ubuntu', Arial, sans-serif;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: rgba(0,102,255,0.05); }
.menu-item a { 
  color: inherit; 
  text-decoration: none; 
  flex: 1; 
  display: block; 
  font-family: 'Ubuntu', Arial, sans-serif;
}
.menu-item .arrow {
  font-size: 12px;
  color: var(--uc-color-color-wm5en, #0066ff);
  margin-left: 12px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.menu-item .arrow.open { transform: rotate(180deg); }
.menu-item.active { 
  background: rgba(0,102,255,0.10); 
  color: var(--uc-color-color-wm5en, #0066ff); 
}

/* --- ПОДМЕНЮ --- */
.submenu-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  margin-left: 20px;
  background: rgba(255,255,255,0.5);
  border-radius: 0 0 8px 8px;
}
.submenu-wrapper.open {
  max-height: 800px;
  opacity: 1;
}

.submenu-wrapper-3 {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  margin-left: 20px;
}
.submenu-wrapper-3.open {
  max-height: 400px;
  opacity: 1;
}

.submenu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  color: var(--uc-color-color-wm5en, #0066ff);
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: transparent;
  font-family: 'Ubuntu', Arial, sans-serif;
}
.submenu-item:last-child { border-bottom: none; }
.submenu-item:hover { background: rgba(0,102,255,0.05); }
.submenu-item a { 
  color: inherit; 
  text-decoration: none; 
  flex: 1; 
  display: block; 
  font-family: 'Ubuntu', Arial, sans-serif;
}
.submenu-item .arrow {
  font-size: 10px;
  color: var(--uc-color-color-wm5en, #0066ff);
  margin-left: 12px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.submenu-item .arrow.open { transform: rotate(180deg); }
.submenu-item.active { 
  background: rgba(0,102,255,0.08); 
  color: var(--uc-color-color-wm5en, #0066ff); 
}

/* --- МОБИЛЬНАЯ АДАПТАЦИЯ --- */
@media (max-width: 480px) {
  .menu-wrapper { padding: 20px 15px; }
  .logo-img { max-width: 150px; }
  .btn { 
    min-width: 120px; 
    font-size: 14px; 
    padding: 10px 20px;
    flex: 0 1 auto;
  }
  .menu-item { font-size: 16px; padding: 12px 14px; }
  .submenu-item { font-size: 15px; padding: 10px 12px; }
  .submenu-wrapper,
  .submenu-wrapper-3 { margin-left: 12px; }
  .contacts-block { gap: 8px; }
  .menu-container { max-width: 100%; }
}
/* ============================================
     КАСТОМНАЯ КНОПКА ЗАКРЫТИЯ (КАК В TILDA)
     ============================================ */

.custom-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  padding: 0;
  cursor: pointer;
  z-index: 100;
  background: transparent !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
.custom-close-btn:hover {
  opacity: 0.7;
}
.custom-close-btn .t-popup__close-icon {
  width: 23px;
  height: 23px;
  display: block;
}
.custom-close-btn .t-popup__close-icon rect {
  fill: #000000;
}

/* ============================================
     СКРЫВАЕМ СТАНДАРТНУЮ КНОПКУ TILDA
     ============================================ */

.t-popup__close {
  display: none !important;
}