/* PARTB4 - All Buttons Styles and Animations */
/* Hero buttons, login buttons, and service buttons */

/* Disabled/In Development state */
.hero-card.disabled,
.hero-card.in-development {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  pointer-events: auto; /* Allow click to show message */
}

.hero-card.disabled:hover,
.hero-card.in-development:hover {
  transform: none !important;
  box-shadow: inherit !important;
}

/* Hero section from main-page */
.hero {
  grid-column: 1 / -1;
  padding: 10px 0 0 0;
}

.hero__grid {
  margin: -0.5rem auto 0 auto;
  max-width: min(110rem, 92vw);
  width: 100%;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  min-height: clamp(15rem, calc(100vh - 15rem), 30rem);
  position: relative;
}

.hero__grid.right-aligned {
  justify-content: flex-end !important;
}

.hero__grid.center-aligned {
  justify-content: center !important;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  isolation: isolate;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 28vh;
  width: 500px;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0.5rem 1.5rem rgba(0, 0, 0, 0.3),
    0 1rem 2rem rgba(0, 0, 0, 0.2);
  position: relative;
  border-radius: 0.75rem;
  position: relative;
  overflow: visible;
  -webkit-mask-image: radial-gradient(circle at calc(100% - 22px) 22px, transparent 8px, black 10px);
  mask-image: radial-gradient(circle at calc(100% - 22px) 22px, transparent 8px, black 10px);
}

.hero-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: auto;
}


.hero-card__arrow {
  align-self: flex-start;
  margin-top: 0;
  margin-left: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.hero-card__title .hero-card__arrow {
  display: inline;
  width: auto;
  height: auto;
  margin-left: 0.5rem;
  font-size: 1em;
}




.hero-card:hover {
  background: rgba(0, 0, 0, 0.85);
  box-shadow:
    0 0.8rem 2.5rem rgba(0, 0, 0, 0.4),
    0 1.5rem 4rem rgba(0, 0, 0, 0.3);
  transform: translateY(-0.2rem);
}

.hero-card:hover .hero-card__arrow {
  transform: translateX(4px);
}

/* Accent button styling */
.hero-card--accent {
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

/* Button in development state */
.hero-card--secondary {
  background: rgba(0, 0, 0, 0.75);
  height: 25vh;
  width: calc((500px - 0.75rem) / 2);
}

.hero-card--secondary:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(-0.15rem);
}

.hero-card--secondary .hero-card__description {
  font-size: 0.75rem;
  line-height: 1.3;
}

.services-btn-bottom .hero-card__description {
  font-size: 0.75rem;
  line-height: 1.3;
}

.hero-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  padding-left: 0;
  padding-right: 0;
}

.hero-card__top {
  display: flex;
  flex: 0 0 auto;
  width: 94%;
  border-bottom: none;
  flex-wrap: wrap;
}

.hero-card__bottom {
  flex: 0 0 auto;
  width: 100%;
  margin-top: 20px;
  position: relative;
  padding-left: 0;
}

.hero-card__body::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 5;
}

.hero-card__icon {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  z-index: 15;
  opacity: 0.8;
  filter: brightness(1.2);
}

.hero-card__title {
  font-size: 2.4vh;
  font-weight: normal;
  line-height: 1.2;
  color: #ffffff !important;
  margin: 0 0 0.1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  word-wrap: break-word;
  text-align: left;
  position: relative;
  z-index: 15;
}

.hero-card__description {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(224, 224, 224, 0.8);
  margin: 0 0 0.25rem 0;
  text-align: left;
  word-wrap: break-word;
  position: relative;
  z-index: 15;
}

.hero-card__status {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 193, 7, 0.9);
  margin: 0;
  text-align: left;
  position: relative;
  z-index: 15;
  opacity: 0.8;
}

.hero-card__title .beta-badge {
  position: absolute;
  display: inline-block;
  margin-left: 0.5rem;
  padding: 2px 6px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: white;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-card__input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 400;
  outline: none;
  transition: all 0.3s ease;
  margin: 0.5rem 0;
  position: relative;
  z-index: 15;
}

.hero-card__input:focus {
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.3);
}

.hero-card__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.hero-card--primary {
  height: 25vh;
  width: 500px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0.8rem 2rem rgba(0, 0, 0, 0.3),
    0 1.5rem 3rem rgba(0, 0, 0, 0.25);
  border-radius: 0.75rem;
  margin-left: auto;
  margin-right: 0;
}

.hero-card--primary .hero-card__icon {
  width: 40px !important;
  height: 40px !important;
  left: 50% !important;
  top: 20px !important;
  opacity: 0.3 !important;
  transform: translateX(-50%) !important;
}

.hero-card--primary .hero-card__title {
  font-size: 2vw;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  text-align: left;
}

.hero-card--primary:hover {
  background: rgba(0, 0, 0, 0.85);
  box-shadow:
    0 1rem 3rem rgba(0, 0, 0, 0.4),
    0 2rem 5rem rgba(0, 0, 0, 0.35);
  transform: translateY(-0.3rem);
}

.hero__side {
  display: flex;
  gap: 0.75rem;
  flex-direction: column;
  height: auto;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  margin-right: 0;
}

.hero__bottom-row {
  display: flex;
  gap: 0.75rem;
  flex-direction: row;
  width: 100%;
  justify-content: center;
}

.hero__description {
  margin-top: -1rem;
  max-width: 600px;
  margin-left: 0;
  margin-right: auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 0s forwards;
  position: fixed;
  bottom: 10px;
}

.hero__description p {
  font-size: 0.9rem;
  color: rgba(224, 224, 224, 0.9);
  line-height: 1.2;
  font-weight: 400;
  text-align: left;
  white-space: normal;
  margin: 0;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet and mobile responsive */
/* Medium large screens */
@media (max-width: 1200px) {
  .hero__description {
    margin-top: -1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
  }
}

/* Tablet landscape - только скрытие степпера */
@media (max-width: 1024px) {
  .layout-toggle {
    display: none !important;
  }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .hero__grid {
    margin-top: 0.5rem;
  }

  .hero__description {
    margin-top: -1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
  }
}

/* Mobile landscape / Small tablet - только скрытие степпера */
@media (max-width: 768px) {
  .layout-toggle {
    display: none !important;
  }
}

/* Large mobile */
@media (max-width: 600px) {
  .hero__grid {
    margin-top: 0.25rem;
    padding: 0.75rem;
    gap: 0.75rem;
    justify-content: flex-end;
    align-items: flex-end;
  }

  .hero__side {
    width: 100%;
  }

  .hero-card {
    width: 100%;
    height: clamp(180px, 38vw, 230px);
  }

  /* .hero-card--primary {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: clamp(220px, 55vw, 280px) !important;
    margin: 0 !important;
    padding: 1rem !important;
  } */

  .hero-card--primary .hero-card__title {
    font-size: clamp(1.5rem, 5.5vw, 2rem) !important;
    line-height: 1.2 !important;
  }

  .hero-card--secondary {
    height: 25vh !important;
    width: calc((100% - 0.75rem) / 2);
    min-height: clamp(150px, 32vw, 190px) !important;
    padding: 0.75rem !important;
  }

  .hero-card--secondary .hero-card__description {
    font-size: 0.7rem !important;
    line-height: 1.4 !important;
  }

  .hero-card--secondary .hero-card__title {
    font-size: clamp(0.95rem, 3.8vw, 1.15rem) !important;
  }

  .services-btn-bottom {
    width: calc((100% - 0.75rem) / 2) !important;
    height: 25vh !important;
    min-height: clamp(150px, 32vw, 190px) !important;
    max-width: 100% !important;
    flex-shrink: 0 !important;
    padding: 0.75rem !important;
  }

  .services-btn-bottom .hero-card__description {
    font-size: 0.7rem !important;
    line-height: 1.4 !important;
  }

  .services-btn-bottom .hero-card__title {
    font-size: clamp(0.95rem, 3.8vw, 1.15rem) !important;
  }

  .hero__bottom-row {
    flex-direction: row;
    gap: 0.75rem;
    /* justify-content: center; */
    /* width: clamp(280px, 57vw, 360px); */
    justify-content: space-between;
  }

  .login-container {
    width: 100%;
  }

  .layout-toggle {
    display: none !important;
  }

  .login-btn-small {
    width: clamp(280px, 45vw, 450px);
  }

  .hero__description {
    margin-top: 1.5rem;
    padding: 0 1rem;
    max-width: clamp(280px, 50vw, 550px);
    margin-left: auto;
    margin-right: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
  }

  .hero__description p {
    font-size: 0.85rem;
  }
}

/* Extra small mobile */
@media (max-width: 360px) {
  .hero__grid {
    padding: 0.5rem;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: flex-end;
  }

  .hero__side {
    width: clamp(260px, 70vw, 320px) !important;
  }

  .hero-card {
    width: clamp(260px, 57vw, 320px);
    height: clamp(150px, 38vw, 180px);
    padding: 0.75rem 1rem;
  }

  .hero-card--primary {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: clamp(200px, 50vw, 250px) !important;
    margin: 0 !important;
    padding: 0.875rem !important;
  }

  .hero-card--primary .hero-card__title {
    font-size: clamp(1.3rem, 5vw, 1.7rem) !important;
    line-height: 1.2 !important;
  }

  .hero-card--accent {
    height: clamp(160px, 40vw, 200px) !important;
    width: 100% !important;
  }

  .hero-card--secondary {
    height: clamp(130px, 28vw, 160px) !important;
    width: calc((clamp(260px, 57vw, 320px) - 0.5rem) / 2) !important;
    min-height: clamp(130px, 28vw, 160px) !important;
    padding: 0.625rem !important;
  }

  .hero-card--secondary .hero-card__description {
    font-size: 0.65rem !important;
    line-height: 1.3 !important;
  }

  .hero-card--secondary .hero-card__title {
    font-size: clamp(0.85rem, 3.5vw, 1rem) !important;
  }

  .services-btn-bottom {
    width: calc((clamp(260px, 57vw, 320px) - 0.5rem) / 2) !important;
    height: clamp(130px, 28vw, 160px) !important;
    min-height: clamp(130px, 28vw, 160px) !important;
    max-width: 100% !important;
    flex-shrink: 0 !important;
    padding: 0.625rem !important;
  }

  .services-btn-bottom .hero-card__description {
    font-size: 0.65rem !important;
    line-height: 1.3 !important;
  }

  .services-btn-bottom .hero-card__title {
    font-size: clamp(0.85rem, 3.5vw, 1rem) !important;
  }

  .hero__bottom-row {
    flex-direction: row !important;
    gap: 0.5rem !important;
    justify-content: space-between !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  .hero-card__title {
    font-size: clamp(0.9rem, 3.8vw, 1.1rem) !important;
    line-height: 1.3 !important;
  }

  .hero-card__description {
    font-size: 0.75rem;
  }

  .login-container {
    width: clamp(310px, 50vw, 480px);
  }

  .layout-toggle {
    display: none !important;
  }

  .login-btn-small {
    width: clamp(260px, 45vw, 420px);
    height: 48px;
    font-size: 0.85rem;
  }

  .hero__description {
    margin-top: 1.5rem;
    padding: 0 0.5rem;
    max-width: clamp(260px, 50vw, 500px);
    margin-left: auto;
    margin-right: 0;
  }

  .hero__description p {
    font-size: 0.75rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero__grid {
    padding: clamp(0.5rem, 1.5vw, 1rem);
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.25rem;
    justify-content: flex-end;
  }

  .hero__side {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    align-items: stretch !important;
  }

  /* .hero-card {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: clamp(140px, 38vw, 180px);
    margin: 0;
  } */

  /* .hero-card--primary {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: clamp(200px, 50vw, 250px) !important;
    margin: 0 !important;
    padding: 1rem !important;
  } */

  .hero-card--accent {
    min-height: clamp(160px, 40vw, 200px) !important;
    width: 100% !important;
  }

  .hero-card--primary .hero-card__icon {
    display: none;
  }

  .hero-card--secondary {
    height: clamp(140px, 30vw, 180px) !important;
    width: calc((100% - 0.75rem) / 2) !important;
    min-height: clamp(140px, 30vw, 180px) !important;
    padding: 0.75rem !important;
  }

  .hero-card--secondary .hero-card__description {
    font-size: 0.7rem !important;
    line-height: 1.4 !important;
    margin-top: 0.5rem !important;
  }

  .hero-card--secondary .hero-card__title {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem) !important;
    line-height: 1.2 !important;
  }

  .hero__bottom-row {
    flex-direction: row !important;
    gap: 0.75rem !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: stretch !important;
  }

  .hero-card__title {
    font-size: clamp(1rem, 4vw, 1.2rem) !important;
    text-align: left !important;
    line-height: 1.3 !important;
  }

  .hero-card--primary .hero-card__title {
    font-size: clamp(1.4rem, 5vw, 1.8rem) !important;
    text-align: left !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  .services-btn-bottom {
    width: calc((100% - 0.75rem) / 2) !important;
    height: clamp(140px, 30vw, 180px) !important;
    min-height: clamp(140px, 30vw, 180px) !important;
    max-width: 100% !important;
    flex-shrink: 0 !important;
    padding: 0.75rem !important;
  }

  .services-btn-bottom .hero-card__description {
    font-size: 0.7rem !important;
    line-height: 1.4 !important;
    margin-top: 0.5rem !important;
  }

  .services-btn-bottom .hero-card__title {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem) !important;
    line-height: 1.2 !important;
  }

  .login-container {
    width: 100%;
    max-width: 100%;
    justify-content: flex-end;
    margin: 0;
    flex-direction: row;
    gap: 0;
  }

  .layout-toggle {
    display: none !important;
  }

  .login-btn-small {
    width: clamp(320px, 45vw, 465px);
    height: 52px;
    font-size: 0.9rem;
  }

  .hero__description {
    margin-top: 1.5rem;
    padding: 0 0.75rem;
    max-width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
  }

  .hero__description p {
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: normal;
  }

  .hero-card__description {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .hero-card__input {
    font-size: 0.85rem;
    padding: 0.6rem 0.75rem;
  }
}

/* Login Container */
.login-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
  margin-right: 0;
}

/* Layout Toggle Button */
.layout-toggle {
  position: relative;
  width: 50px;
  height: 52px;
  background: rgba(0, 0, 0, 0.75);
  border: none;
  border-radius: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3), 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.layout-toggle:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.05);
}

.layout-toggle:disabled,
.layout-toggle[disabled] {
  opacity: 0.5 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

.layout-toggle:disabled:hover,
.layout-toggle[disabled]:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: none;
}

/* Login and Service Buttons */
.login-btn {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, rgba(58, 58, 255, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%), rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(58, 58, 255, 0.3);
  border-radius: 8px;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-btn-small {
  position: relative;
  width: 440px;
  height: 52px;
  background: rgba(0, 0, 0, 0.75);
  border: none;
  border-radius: 0.75rem;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3), 0 1rem 2rem rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  isolation: isolate;
}

.login-btn-small::after {
  content: "➜";
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease;
}

.login-btn-small:hover {
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.3), 0 1.5rem 3rem rgba(0, 0, 0, 0.25);
  transform: translateY(-0.15rem);
}

.login-btn-small:hover::after {
  transform: translateX(4px);
}

.services-btn-bottom {
  position: relative;
  width: calc((500px - 0.75rem) / 2);
  height: 25vh;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.75);
  border: none;
  border-radius: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3), 0 1rem 2rem rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-decoration: none;
  isolation: isolate;
  flex-shrink: 1;
  padding: 1rem 1.25rem;
}

.services-btn-bottom:hover {
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.3), 0 1.5rem 3rem rgba(0, 0, 0, 0.25);
  transform: translateY(-0.15rem);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
}

.services-btn {
  position: fixed;
  top: 2rem;
  right: 14rem;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%), rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(78, 205, 196, 0.3);
  border-radius: 8px;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}










