/* Буквы по центру, контейнер 130×130 */

.rudus-letter-box {
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.rudus-letter-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.8s ease;
}
.rudus-letter-box .text {
  transition: opacity 0.8s ease;
}
.rudus-letter-box:hover .text {
  color: #e7bfb8;
}
.rudus-letter-box img.default {
  opacity: 1;
}
.rudus-letter-box img.active {
  opacity: 0;
}
.rudus-letter-box:hover img.default,
.rudus-letter-box.is-highlighted img.default {
  opacity: 0;
}
.rudus-letter-box:hover img.active,
.rudus-letter-box.is-highlighted img.active {
  opacity: 1;
}

/* Кнопка «Связь с нами» — fixed снизу справа с переливанием */
.btn-contact {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(154, 52, 18, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(154, 52, 18, 0.5);
}
.btn-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: btn-contact-shine 12s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-contact-shine {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}
/* Фон кнопки — градиент с переливанием (тёмные оттенки) */
.btn-contact {
  background: linear-gradient(
    135deg,
    #9a3412 0%,
    #c2410c 25%,
    #ea580c 50%,
    #c2410c 75%,
    #9a3412 100%
  );
  background-size: 200% 200%;
  animation: btn-contact-gradient 18s ease infinite;
}
@keyframes btn-contact-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Оверлей при открытом меню — клик закрывает */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Выезжающее меню справа */
.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  z-index: 1000;
  background: rgba(24, 24, 27, 0.98);
  backdrop-filter: blur(12px);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
}

.menu-panel.is-open {
  transform: translateX(0);
}

.menu-panel__inner {
  height: 100%;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.menu-panel__close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.menu-panel__close:hover {
  opacity: 0.7;
}

.menu-panel__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-panel__link {
  padding: 0.75rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
}

.menu-panel__link:hover {
  opacity: 0.85;
  color: #f97316;
}
