

.lang-switch {
  --lang-tab-handle: 54px;
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 300;
  display: flex;
  align-items: stretch;
  direction: ltr;
  padding: 3px 3px 3px 5px;
  color: rgba(230, 242, 255, 0.98);
  background: rgba(4, 10, 28, 0.68);
  border: 1px solid rgba(100, 150, 255, 0.26);
  border-left: 0;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  transform: translateX(calc(-100% + var(--lang-tab-handle))) translateY(-50%);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease, background 180ms ease;
  isolation: isolate;
}

.lang-switch:not(.lang-switch--ready) {
  visibility: hidden;
}

.lang-switch.is-open {
  transform: translateX(0) translateY(-50%);
  border-color: rgba(115, 165, 255, 0.48);
  background: rgba(4, 10, 28, 0.72);
}

@media (hover: hover) and (pointer: fine) {
  .lang-switch:hover,
  .lang-switch:focus-within {
    transform: translateX(0) translateY(-50%);
    border-color: rgba(115, 165, 255, 0.48);
    background: rgba(4, 10, 28, 0.72);
  }
}

.lang-switch-options {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-right: 5px;
}

.lang-switch-btn,
.lang-switch-handle {
  min-height: 46px;
  font-family: 'Outfit', sans-serif;
  color: rgba(175, 202, 255, 0.76);
  background: transparent;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lang-switch-btn {
  min-width: 46px;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.lang-switch-btn:hover,
.lang-switch-btn:focus-visible {
  color: #fff;
  background: rgba(95, 140, 255, 0.18);
  outline: none;
}

.lang-switch-btn[aria-pressed="true"] {
  color: #fff;
  background: rgba(60, 110, 255, 0.32);
  box-shadow: inset 0 0 0 1px rgba(130, 175, 255, 0.18);
}

.lang-switch-handle {
  width: calc(var(--lang-tab-handle) - 8px);
  flex: 0 0 calc(var(--lang-tab-handle) - 8px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 4px 0;
  border-radius: 11px;
  transition: color 160ms ease, background 160ms ease;
}

.lang-switch-handle:hover,
.lang-switch-handle:focus-visible {
  color: #fff;
  background: rgba(95, 140, 255, 0.14);
  outline: none;
}

.lang-switch-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.lang-switch-current {
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .lang-switch {
    --lang-tab-handle: 50px;
    top: 41%;
    background: rgba(4, 10, 28, 0.56);
    border-color: rgba(130, 178, 255, 0.3);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(22px) saturate(1.45);
    -webkit-backdrop-filter: blur(22px) saturate(1.45);
  }

  .lang-switch.is-open {
    background: rgba(4, 10, 28, 0.62);
  }

  .lang-switch-btn,
  .lang-switch-handle {
    min-height: 43px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lang-switch {
    transition-duration: 0.01ms;
  }
}

.quick-contact {
  --contact-tab-handle: 54px;
  --contact-panel-width: min(350px, calc(100vw - 66px));
  position: fixed;
  top: calc(50% - 84px);
  left: 0;
  z-index: 301;
  width: var(--contact-tab-handle);
  height: var(--contact-tab-handle);
  direction: ltr;
  isolation: isolate;
}

.quick-contact-panel {
  position: absolute;
  top: 50%;
  left: 0;
  width: var(--contact-panel-width);
  padding: 18px 18px 17px;
  direction: rtl;
  text-align: right;
  color: rgba(230, 242, 255, 0.98);
  background: rgba(4, 10, 28, 0.72);
  border: 1px solid rgba(115, 165, 255, 0.48);
  border-left: 0;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  transform: translate(-100%, -50%);
  opacity: 0;
  visibility: hidden;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease, visibility 0s linear 260ms;
}

html[dir="ltr"] .quick-contact-panel {
  direction: ltr;
  text-align: left;
}

.quick-contact.is-open .quick-contact-panel {
  transform: translate(0, -50%);
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.quick-contact-title {
  margin: 0 0 13px;
  color: #fff;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
}

.quick-contact-list {
  display: grid;
  gap: 12px;
}

.quick-contact-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  color: rgba(225, 237, 255, 0.86);
  font-size: 14px;
  line-height: 1.65;
}

.quick-contact-row-icon {
  width: 21px;
  height: 21px;
  color: rgba(145, 184, 255, 0.88);
}

.quick-contact-details {
  min-width: 0;
}

.quick-contact-label {
  display: block;
  margin-bottom: 1px;
  color: rgba(160, 193, 255, 0.72);
  font-size: 12px;
}

.quick-contact-value,
.quick-contact-value:visited {
  color: rgba(241, 247, 255, 0.98);
  font-size: 15px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.quick-contact-value[href]:hover,
.quick-contact-value[href]:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.quick-contact-handle {
  position: relative;
  z-index: 2;
  width: var(--contact-tab-handle);
  height: var(--contact-tab-handle);
  display: grid;
  place-items: center;
  padding: 3px;
  color: rgba(175, 202, 255, 0.82);
  background: rgba(4, 10, 28, 0.68);
  border: 1px solid rgba(100, 150, 255, 0.26);
  border-left: 0;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), color 160ms ease, background 160ms ease, border-color 180ms ease;
}

.quick-contact.is-open .quick-contact-handle {
  transform: translateX(var(--contact-panel-width));
  color: #fff;
  background: rgba(4, 10, 28, 0.72);
  border-color: rgba(115, 165, 255, 0.48);
}

.quick-contact-handle:hover,
.quick-contact-handle:focus-visible {
  color: #fff;
  background: rgba(20, 35, 70, 0.72);
  outline: none;
}

.quick-contact-icon {
  width: 18px;
  height: 18px;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .quick-contact:hover .quick-contact-panel,
  .quick-contact:focus-within .quick-contact-panel {
    transform: translate(0, -50%);
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .quick-contact:hover .quick-contact-handle,
  .quick-contact:focus-within .quick-contact-handle {
    transform: translateX(var(--contact-panel-width));
    color: #fff;
    background: rgba(4, 10, 28, 0.96);
    border-color: rgba(115, 165, 255, 0.48);
  }
}

@media (max-width: 768px) {
  .quick-contact {
    --contact-tab-handle: 50px;
    --contact-panel-width: min(310px, calc(100vw - 60px));
    top: calc(41% - 80px);
  }

  .quick-contact-handle {
    background: rgba(4, 10, 28, 0.56);
    border-color: rgba(130, 178, 255, 0.3);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(22px) saturate(1.45);
    -webkit-backdrop-filter: blur(22px) saturate(1.45);
  }

  .quick-contact.is-open .quick-contact-handle {
    background: rgba(4, 10, 28, 0.62);
  }

  .quick-contact-panel {
    padding: 16px 15px 15px;
    background: rgba(4, 10, 28, 0.64);
    backdrop-filter: blur(22px) saturate(1.45);
    -webkit-backdrop-filter: blur(22px) saturate(1.45);
  }

  .quick-contact-title {
    font-size: 16px;
  }

  .quick-contact-row {
    font-size: 13.5px;
  }

  .quick-contact-value {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quick-contact-panel,
  .quick-contact-handle {
    transition-duration: 0.01ms;
  }
}
