/* Hero Section Styles - Modern Minimalist Design */

/* Breadcrumb Navigation */
.breadcrumb {
  position: absolute;
  top: 120px;
  left: 40px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  opacity: 0;
  animation: fadeInDown 0.8s ease forwards 0.3s;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.breadcrumb__back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.breadcrumb__back:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(-4px);
}

.breadcrumb__back svg {
  flex-shrink: 0;
}

.breadcrumb__separator {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

.breadcrumb__current {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .breadcrumb {
    top: 90px;
    left: 20px;
    right: 20px;
    font-size: 13px;
    gap: 8px;
  }
  
  .breadcrumb__back {
    padding: 6px 12px;
    gap: 6px;
  }
  
  .breadcrumb__back svg {
    width: 16px;
    height: 16px;
  }
  
  .breadcrumb__current {
    display: none;
  }
  
  .breadcrumb__separator {
    display: none;
  }
}

@media (max-width: 480px) {
  .breadcrumb {
    top: 80px;
    left: 16px;
  }
  
  .breadcrumb__back span {
    display: none;
  }
  
  .breadcrumb__back {
    padding: 8px;
    min-width: 40px;
    justify-content: center;
  }
}

/* Hero */
.hero{
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: 600px;
  margin-top: 0;
}

@media (max-width: 768px) {
  .hero {
    height: 100vh;
    min-height: 500px;
  }
}

.hero__media{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
  min-height: 100vh;
}

/* Video Container Styles */
.hero__video-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000000; /* Черный фон при загрузке */
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero__video.loaded {
  opacity: 1;
}

/* Video preview removed - no background image needed */

/* Loading spinner with black background */
.hero__video-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000; /* Полностью черный фон */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.hero__video-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.hero__loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Loading text */
.hero__loading-text {
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  opacity: 0.7;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    min-height: 100vh;
  }
}

@media (max-width: 768px) {
  .hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    min-height: 100vh;
  }
  
  /* Video preview removed for mobile too */
  
  .hero__loading-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }
  
  .hero__loading-text {
    font-size: 12px;
    bottom: 25%;
  }
}

.hero__carousel{
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y pinch-zoom;
}

/* Add hover effect to indicate interactivity */
.hero__carousel:hover {
  cursor: pointer;
}

@media (max-width: 768px) {
  .hero__carousel {
    width: 100%;
    height: 100%;
    min-height: 100vh;
  }
}

.hero__slide{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

@media (max-width: 768px) {
  .hero__slide {
    width: 100%;
    height: 100%;
    min-height: 100vh;
  }
}

/* Tablet specific styles for slides */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero__slide {
    width: 100%;
    height: 100%;
    min-height: 100vh;
  }
}

.hero__slide.active{
  opacity: 1;
  transform: scale(1);
}

.hero__overlay{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 40px;
  z-index: 2;
  transition: all 1s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Hide overlay until video loads */
.hero__overlay--hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.hero__overlay--visible {
  opacity: 1;
  visibility: visible;
}

/* Анимация появления элементов внутри слайдов */
.hero__slide:not(.active) .hero__overlay {
  opacity: 0;
  transform: translateY(20px);
}

.hero__slide.active .hero__overlay {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

/* Hero Soon Badge - Стильный эффект появления */
.hero__soon-badge{
  font-family: "Unbounded", sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0 0 24px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: none;
}

.hero__slide.active .hero__soon-badge {
  animation: badgeAppear 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

@keyframes badgeAppear {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero__soon-badge::after{
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: #ffffff;
  opacity: 0.6;
}

/* Hero Title Styles - Стильная анимация появления */
.hero-title{
  font-family: "Unbounded", sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  margin: 0 0 40px;
  color: #ffffff;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(40px) rotateX(-10deg);
  transform-origin: center bottom;
  perspective: 1000px;
  transition: none;
  word-wrap: break-word;
  word-break: keep-all;
  hyphens: auto;
  overflow-wrap: break-word;
  filter: blur(10px);
}

.hero__slide.active .hero-title {
  animation: titleAppear 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes titleAppear {
  0% {
    opacity: 0;
    transform: translateY(40px) rotateX(-10deg);
    filter: blur(10px);
  }
  60% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    filter: blur(0);
  }
}

/* Elegant Style - First slide */
.hero-title--elegant{
  font-weight: 200;
  font-style: italic;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  white-space: pre-line;
  text-align: center;
}

.hero-title--elegant::after{
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
}

/* Bold Style - Second slide */
.hero-title--bold{
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  position: relative;
}

.hero-title--bold::before{
  content: '';
  position: absolute;
  top: -10px;
  left: -20px;
  right: -20px;
  bottom: -10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  z-index: -1;
}

/* Minimal Style - Third slide */
.hero-title--minimal{
  font-weight: 300;
  letter-spacing: 0.05em;
  text-align: center;
  position: relative;
}

.hero-title--minimal::before{
  content: '';
  position: absolute;
  top: 50%;
  left: -30px;
  width: 20px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%);
}

.hero-title--minimal::after{
  content: '';
  position: absolute;
  top: 50%;
  right: -30px;
  width: 20px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%);
}

/* Japanese Title - Элегантная анимация появления */
.hero__japanese-title{
  font-family: "Zen Maru Gothic", serif;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  margin: 16px 0 8px;
  opacity: 0;
  transform: translateX(-30px);
  transition: none;
  font-style: italic;
  text-align: center;
}

.hero__slide.active .hero__japanese-title {
  animation: slideInFromLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards;
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.location{
  font-family: "Unbounded", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 2px;
  margin-top: 24px;
  opacity: 0;
  transform: translateX(30px);
  transition: none;
}

.hero__slide.active .location {
  animation: slideInFromRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1s forwards;
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero__description{
  max-width: 700px;
  margin: 32px auto 0;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) 0.6s;
}

.hero__slide.active .hero__description {
  opacity: 1;
  transform: translateY(0);
}

.hero__description p{
  font-family: "Nunito", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero__description p:last-child{
  margin-bottom: 0;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* Navigation arrows - Hidden, using keyboard instead */
.hero__nav {
  display: none;
}

/* Keyboard hint for desktop - Minimalist design */
.hero__keyboard-hint {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeInHint 1.5s ease forwards 2.5s;
  transition: all 0.3s ease;
}

/* Hide hint after user interaction */
.hero__keyboard-hint.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  pointer-events: none;
}

.hero__keyboard-hint:hover {
  transform: translateX(-50%) translateY(-2px);
}

@keyframes fadeInHint {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.hero__keyboard-hint kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(10px);
}

.hero__keyboard-hint kbd:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero__keyboard-hint kbd:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Mini cards navigation */
.hero__mini-cards {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 20px;
  padding: 0 20px;
}

.hero__mini-card {
  width: 120px;
  height: 80px;
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  opacity: 0.6;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.hero__mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
  border-color: rgba(255, 255, 255, 0.3);
}

.hero__mini-card.active {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.6);
  border-width: 2px;
}

.hero__mini-card-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__mini-card-image img,
.hero__mini-card-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-width: 100%;
  min-height: 100%;
}

.hero__mini-card-title {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 500;
  padding: 6px 8px;
  text-align: center;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 4px;
  backdrop-filter: blur(5px);
}

.hero__mini-card:hover .hero__mini-card-title,
.hero__mini-card.active .hero__mini-card-title {
  opacity: 1;
  transform: translateY(0);
}

/* Показывать заголовок всегда для активной карточки */
.hero__mini-card.active .hero__mini-card-title {
  opacity: 1;
  transform: translateY(0);
  background: rgba(0, 0, 0, 0.8);
}

/* Responsive Design */
@media (max-width: 768px){
  .hero{
    height: 80vh;
    min-height: 500px;
  }
  
  /* Hide keyboard hint on mobile - swipe instead */
  .hero__keyboard-hint {
    display: none;
  }
  
  /* Show subtle swipe hint on mobile */
  .hero__carousel::after {
    content: '← Swipe →';
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeInSwipeHint 2s ease forwards 3s;
    pointer-events: none;
  }
  
  @keyframes fadeInSwipeHint {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
  }
  
  
  .hero__overlay{
    padding: 40px 20px;
  }
  
  .hero-title{
    font-size: clamp(24px, 6vw, 42px);
    margin: 0 0 28px;
    line-height: 1.1;
    word-wrap: break-word;
    word-break: keep-all;
    hyphens: auto;
    overflow-wrap: break-word;
  }
  
  .hero-title--elegant::after{
    width: 40px;
  }
  
  .hero-title--bold::before{
    top: -8px;
    left: -15px;
    right: -15px;
    bottom: -8px;
  }
  
  .hero-title--minimal::before,
  .hero-title--minimal::after{
    width: 15px;
    left: -20px;
    right: -20px;
  }
  
  .hero__soon-badge{
    font-size: 12px;
    margin: 0 0 20px;
    letter-spacing: 2px;
    padding: 6px 16px;
  }
  
  .hero__japanese-title{
    font-size: 16px;
    margin: 12px 0 6px;
    letter-spacing: 0.5px;
  }
  
  .location{
    font-size: 14px;
    margin-top: 20px;
  }
  
  .hero__description{
    max-width: 500px;
    margin: 24px auto 0;
    padding: 0 15px;
  }
  
  .hero__description p{
    font-size: 16px;
    line-height: 1.5;
  }
  
  .hero__mini-cards {
    bottom: 30px;
    gap: 16px;
    padding: 0 15px;
  }
  
  .hero__mini-card {
    width: 90px;
    height: 65px;
    border-radius: 12px;
  }
  
  .hero__mini-card-title {
    font-size: 9px;
    padding: 5px 6px;
    bottom: 4px;
    left: 4px;
    right: 4px;
    border-radius: 3px;
  }
}

@media (max-width: 480px){
  .hero{
    height: 100vh;
    min-height: 400px;
  }
  
  .hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    min-height: 100vh;
  }
  
  .hero__overlay{
    padding: 30px 15px;
  }
  
  .hero-title{
    font-size: clamp(20px, 8vw, 36px);
    margin: 0 0 20px;
    line-height: 1.15;
    word-wrap: break-word;
    word-break: keep-all;
    hyphens: auto;
    overflow-wrap: break-word;
  }
  
  .hero-title--elegant::after{
    width: 30px;
  }
  
  .hero-title--bold::before{
    top: -6px;
    left: -10px;
    right: -10px;
    bottom: -6px;
  }
  
  .hero-title--minimal::before,
  .hero-title--minimal::after{
    width: 12px;
    left: -15px;
    right: -15px;
  }
  
  .hero__soon-badge{
    font-size: 11px;
    margin: 0 0 16px;
    letter-spacing: 1.5px;
    padding: 6px 14px;
  }
  
  .hero__japanese-title{
    font-size: 14px;
    margin: 10px 0 4px;
    letter-spacing: 0.3px;
  }
  
  .location{
    font-size: 12px;
    margin-top: 16px;
  }
  
  .hero__description{
    max-width: 400px;
    margin: 20px auto 0;
    padding: 0 10px;
  }
  
  .hero__description p{
    font-size: 14px;
    line-height: 1.4;
  }
  
  .hero__mini-cards {
    bottom: 20px;
    gap: 12px;
    padding: 0 10px;
  }
  
  .hero__mini-card {
    width: 75px;
    height: 55px;
    border-radius: 10px;
  }
  
  .hero__mini-card-title {
    font-size: 8px;
    padding: 4px 5px;
    bottom: 3px;
    left: 3px;
    right: 3px;
    border-radius: 2px;
  }
  
}
