/* Контакты + увеличенный языковой переключатель */

.ft-nav-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 5;
  margin-left: auto !important;
}

.ft-contacts-btn,
.ft-lang-picker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #f7f9f3;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.25s ease;
}

.ft-contacts-btn-icon,
.ft-contacts-btn-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  color: #c8ff3d;
}

.ft-contacts-btn:hover,
.ft-lang-picker:hover,
.ft-nav-tools--open .ft-contacts-btn,
.ft-lang-bar.ft-lang-bar--open .ft-lang-picker {
  transform: translateY(-1px);
  border-color: rgba(200, 255, 61, 0.38);
  background: rgba(200, 255, 61, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(200, 255, 61, 0.12);
}

.ft-lang-picker {
  min-width: 72px;
  padding: 0 12px 0 14px;
}

.ft-lang-picker-code {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
}

.ft-lang-picker-chevron svg {
  width: 15px !important;
  height: 15px !important;
}

.ft-lang-bar.ft-lang-bar--open .ft-lang-picker-chevron {
  transform: rotate(180deg);
  color: #c8ff3d;
}

.ft-lang-dropdown {
  animation: ft-lang-drop 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: top right;
}

@keyframes ft-lang-drop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ft-contacts-pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(280px, calc(100vw - 24px));
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(200, 255, 61, 0.2);
  background: rgba(8, 12, 18, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  animation: ft-lang-drop 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
  z-index: 400;
}

.ft-contacts-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: #f7f9f3;
  font-size: 13px;
}

.ft-contacts-pop-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: transparent;
  color: #c8d0c4;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.ft-contacts-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #eef2ea;
  text-decoration: none;
  text-align: left;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.ft-contacts-row small {
  font-size: 11px;
  font-weight: 500;
  color: #8b9682;
}

.ft-contacts-row:hover {
  background: rgba(200, 255, 61, 0.1);
  border-color: rgba(200, 255, 61, 0.25);
}

.ft-contacts-row--btn {
  color: #10130c;
  background: linear-gradient(105deg, #dfff79, #aeea24);
  border-color: rgba(255, 255, 255, 0.2);
}

.ft-contacts-row--btn:hover {
  background: linear-gradient(105deg, #e8ff9a, #b8f028);
}

/* Плавные переходы между разделами */
body.ft-route-out main {
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.2s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

body.ft-route-in main {
  animation: ft-route-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ft-route-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ft-route-out main,
  body.ft-route-in main,
  .ft-lang-dropdown,
  .ft-contacts-pop {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 900px) {
  .ft-contacts-btn-label {
    display: none;
  }

  .ft-contacts-btn {
    min-width: 40px;
    padding: 0 12px;
  }
}
