.buttonWrapper {
  position: relative;
}

.button {
  position: relative;
  border: none;
  border-radius: var(--border-radius);
  padding: var(--spacing-small);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all 0.2s ease-in-out;
  text-align: center;
  background-size: 100% 100%;
  background-position: center;
  will-change: transform, background-position;
  width: 100%;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translate3d(0, 0, 0);
  perspective: 1000px;
  -webkit-perspective: 1000px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-tap-highlight-color: transparent;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-position: center;
}

.button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.button[disabled] {
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.button[disabled] .content,
.button[disabled] .icon,
.button[disabled] .iconImage {
  opacity: 0.5;
  filter: grayscale(60%);
  transform: none !important;
}

.button[disabled]::after {
  display: block;
  opacity: 1;
  background: linear-gradient(180deg, 
    rgba(0,0,0,0.2) 0%, 
    rgba(0,0,0,0.3) 50%, 
    rgba(0,0,0,0.4) 100%
  );
}

.button[disabled]::before {
  content: "Скоро";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  z-index: 2;
  opacity: 1;
  filter: none;
}

.icon {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-small);
  transition: transform 0.2s ease;
  transform: translate3d(0, 0, 0);
  perspective: 1000px;
  -webkit-perspective: 1000px;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

.iconImage {
  position: absolute;
  top: 1%;
  left: 0%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
  transform: scale(1) translate3d(0, 0, 0);
  transform-origin: center;
  perspective: 1000px;
  -webkit-perspective: 1000px;
}

.button:hover .icon,
.button:hover .iconImage {
  transform: scale(1.1);
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-small);
  z-index: 1; /* Поверх оверлея */
  width: 100%;
}

.title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
  transform: translate3d(0, 0, 0);
  perspective: 1000px;
  -webkit-perspective: 1000px;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: subpixel-antialiased;
}

.subtitle {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0;
  transform: translate3d(0, 0, 0);
  perspective: 1000px;
  -webkit-perspective: 1000px;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: subpixel-antialiased;
}

/* Оверлей для изображений */
.button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, 
    rgba(0,0,0,0) 0%, 
    rgba(0,0,0,0.1) 50%, 
    rgba(0,0,0,0.2) 100%
  );
  pointer-events: none;
  border-radius: var(--border-radius);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.button:hover::after {
  opacity: 1;
}
